I have a flow that receives data via the UDP receiver. The data comes in separate packets one after another, for example:
Packet 1 - contains voltage
Packet 2 - contains amps
Packet 3 - contains temp
I want to combine all the data from each packet and write it to a DB as a single record. Where I'm confused is how to store the temporary data for later upload.
I know I can use global variables then use a function to verify they're all loaded, write to the DB then finally clear the global variables so the function logic won't have false triggers. However, I feel like that isn't a good approach as I could end up with outdated data mixed with recent data loaded into the variables.