--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/8dfb9877-e020-4dd6-afb8-8d101dc05778%40googlegroups.com.
Hi Garry,here's what the docs have to say on the subject: http://nodered.org/docs/writing-functions#multiple-messagesEssentially:return [ [ {payload:"4off"}, {payload:"8off"} ] ]Nick
On 12 April 2017 at 19:42, Leif Neland <lei...@gmail.com> wrote:
If it works, it's OK for me ;-)
If it didn't I would have made two outputs on the node, and joining them to the MQTT.
Den onsdag den 12. april 2017 kl. 20.37.39 UTC+2 skrev Garry Hayne:Hi,is this code OK (it works), or is there a better way to do it, I want to send multiple messages to a MQTT broker:Function node code:node.send({payload:"4off"});node.send({payload:"8off"});return null;Thanks, Garry
--
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+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.