dkern / node-red-counter

A Node-RED node to increment a count.
Other
8 stars 9 forks source link

initial value cant be update #3

Closed yikfhong closed 7 years ago

yikfhong commented 7 years ago

hi, can make the initial value ability to be update by input?so i can make counter starting increase synchronize to the slider.

dkern commented 7 years ago

You can set the current value with msg.reset. If you don't pass in a number, the counter will be reset to the initiali value. If you give the reset a number, the counter will be reset to this.

For example: msg.reset = 5; will reset the actual value of the counter to 5.