Hi All
I am trying to get my head around Nodered syntax but I am not yet understanding most of how things work.
I have a light system which communicates over RS232 and I 'listen' to it over LAN via a TCP connection.
What I what to do is listen for certain messages and when they appear on the TCP, switch a hue lamp. I am OK for the hue side but what is stumping me is how to set up a flow to do it.
The TCP gives me a msg.payload of [3,97,153,16] which can also be viewed in debug as:-
msg.payload : buffer[4]
buffer[4]raw
0: 0x3
1: 0x61
2: 0x99
3: 0x2e
So the question is what do I use to check the message and act if it is that particular message. I have tried switch, change etc but nothing seems to work. Do I need to use the function command?
Any advice or help is greatly appreciated, I have tried to find examples and have read the user manual but I think I am lacking the basics.
Thanks Fulltopuk