node-red-contrib-resend-last-msg
v1.0.6
Published
Resend last message received
Downloads
46
Maintainers
Readme
node-red-contrib-resend-last-msg
A lightweight node that allows you to resend the last received message, by pressing a simple button. Especially useful for diagnostics.
Install
Use the Manage Palette > Install option from the menu inside node-red
or
Run the following npm command in your Node-RED user directory (typically ~/.node-red):
npm install node-red-contrib-resend-last-msg
Usage
When this node receives a msg via input it will pass it through and store it (using deep clone). The node will resend the last received msg when the button is pressed.
Optionally, you can resend msg.payload only. Additionally, the node counts received messages. The message counter can be reset automatically by choosing the time and day(s) of the week.
License
Licensed under the Apache License 2.0