My debug node receives my published data as:
msg.payload : string [35]
data,name=testname t=25.34,p=966.46My first debug node shows:
msg.payload : array [2][ { "t": 24.39, "p": 969.62, "h": 47.14, "v": 4.06, "c": 97 }, { "Name": "Max", "Location": "Garden" } ]
var p = msg.payload.p;
var textString = "The pressure is "+p;
return textString;function : (error)TypeError: Cannot assign to read only property '_msgid' of The pressure is undefined--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
msg.payload : string [25]
The pressure is undefined