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
node-id;child-sensor-id;command;ack;type;payload\n
The sketch for the receiving node need to "receive" V_VAR1 in this case.
-
@kontrollable said in Sending sleeping time to nodes:
he sketch for the receiving node need to "receive" V_VAR1 in this case.
Thanks, I will try.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 17 days ago -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 27 Mar 2025, 06:07 -
What is actual status of MySensors?
General Discussion • 17 days ago • perfectom 9 days ago -
Is it possible to extract child ID from a just sent message?
General Discussion • 8 Nov 2021, 09:21 • Nigel31 28 days ago -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 25 Mar 2025, 15:30