Node-red msg.reset

4,417 views
Skip to first unread message

Andres Miyara

unread,
Nov 7, 2016, 9:30:24 AM11/7/16
to Node-RED
Hi everyone, i have an issue with the counter node (http://flows.nodered.org/node/ttb-node-red-counter). It says that you can reset with the msg.reset, but i dont know how to send another thing than msg.payload (default). Can you help me?

Best regards.

Andrés

Mark Setrem

unread,
Nov 7, 2016, 9:50:39 AM11/7/16
to Node-RED
Ive never used the node but depending on which version of node-red you are using there are many different ways of doing this with nodes.
But without that info a function node with

msg.reset = "whatever you need here";
return msg;

Should do what you require.
There are some example of writing function nodes in the documentation on the website

Andres Miyara

unread,
Nov 7, 2016, 9:56:58 AM11/7/16
to Node-RED
Mark Setrem, thanks A LOT, it worked just fine!
Reply all
Reply to author
Forward
0 new messages