Hi!
When the message comes from the plattform it is always encapsulated in a json-object with value
and msg
. This is then passed as payload in Node-RED. Therefore it is then msg.payload.value. This is the way it always is in Lynx. However, when sending from Node-RED to Lynx this is done in our Lynx out
node since it is common in Node-RED to have the value in msg.payload
. So if msg.payload
is numeric the Lynx out
node translates it to a Lynx object before sending it to Lynx.
So we have tried to make it as easy to use as possible. To make sure that you do it right it is useful to use the debug-node a lot and print the entire msg-object.