How to process multiple data

Only payload is of relevance

as it reads: Store msg.payload in flow.data
The point of this is to store the last read in flow context - which you can see if you look at the context tab (next to debug on sidebar)

Yes, the buffer parser has generated good data values from your TCP data.


I dont mean to be rude (I dont know your level of expertise) but it seems to me you could perhaps benefit from a a very short hour watching the tutorials?

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

You aren't rude. I have experince with visual studio programing and PLC (Siemens) programming and node red is quite new for me. Yes, I will check tutorials.
Problem with this:
image
was my bad understanding. My understanding was send flow.data to msg.payload so vice versa and I wasn't able understand why you did it.

May I ask you on the scale in buffer parser :


how works >> 5 ?

As per built in help...

Do you understand number masks and bit shifting?

Number masks and bit shifting is clear.
I think your code is now clear for me.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.