Node-Red join node msg.complete property set

2,183 views
Skip to first unread message

Bas Wielen

unread,
Apr 6, 2017, 9:43:25 AM4/6/17
to Node-RED
Hello

I'm working with Node-Red for the first time now and I'm using the join node to send two messages at the same time.
It works if I use the timeout function to send the message, but I would like to send the message with last function in the picture.

















I think I have to send a message to the join node with this property set but I don't know how.
So how can I activate the join node to send with this function?

Greetings Bas Wielen

steve rickus

unread,
Apr 6, 2017, 10:36:53 AM4/6/17
to Node-RED
Bas, you will need two nodes to create a msg object with the "complete" property set -- use an inject node to create a msg with the payload set to a boolean 'true' value -> pass that to a change node that moves the msg.payload to msg.complete

There was a suggestion a while back to allow the inject node to ouput on any msg property (not just payload), but that is not available yet. And since there is a simple 2-node work-around, it has not bubbled up the priority list yet (and may never happen, to be honest)
--
Steve


On Thursday, April 6, 2017 at 9:43:25 AM UTC-4, Bas Wielen wrote:

Dave C-J

unread,
Apr 6, 2017, 5:01:02 PM4/6/17
to node...@googlegroups.com
so - almost as with Steve's suggestion - you could also use the change node to just add msg.complete is true to an existing message - for example the second of your messages (assuming it is not the same path as the first message :-).

Bas Wielen

unread,
Apr 7, 2017, 4:45:14 AM4/7/17
to Node-RED
Hi Steve,

It worked great. 
Thanks for the help and the fast respons.

Greeting Bas

Op donderdag 6 april 2017 16:36:53 UTC+2 schreef steve rickus:
Reply all
Reply to author
Forward
0 new messages