
ValueToOutput1 = Math.round(Math.random()*10*100)/100;ValueToOutput2 = Math.round(Math.random()*10*100)/100;// ^^^ thank you Paul R !!msg1 = {};msg1.topic = "emon/test/topic1";msg1.payload = ValueToOutput1;msg2 = {};msg2.topic = "emon/test/topic2";msg2.payload = ValueToOutput2;return [msg1,msg2];
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
msg.payload = {"topic1":"5.24","topic2":"4.32”}-or-msg.payload = {"emon/test": {"topic1": "5.24","topic2": "3.24”}}