Sending sleeping time to nodes
Is it possible to send a variable from a controller or gateway to the node ? Sometime I want to change a sleeping time of my nodes. Can I do it without uploading new sketch ?
Maybe using smart sleep you can have the node process an incoming message when it wakes up, then in the message you could send a value and change the sleep time variable.
Welcome to the MySensors community @dbo !
The excellent NodeManager by community member @user2684 supports configuring sleep time from the controller. See https://forum.mysensors.org/topic/6183/nodemanager-plugin-for-a-rapid-development-of-battery-powered-sensors/ and https://github.com/mysensors/NodeManager for more information.
@mfalkvidd Thanks. This is exactly what i needed.
If you would like to try something simple and you happen to use a serial gateway. You can just write to the USB port of the GW.
For example like this:
$ echo -n "1;1;1;0;24;SP=20.0\n" > /dev/ttyUSB0
See https://www.mysensors.org/download/serial_api_20 for API
The sketch for the receiving node need to "receive" V_VAR1 in this case.
he sketch for the receiving node need to "receive" V_VAR1 in this case.
Thanks, I will try.