MySensors smartSleep support
Posted: Sunday 23 October 2016 16:28
Is it possible to implement MySensors smartSleep support?
The smartSleep function tells the controller a node is asleep and sends a heartbeat when awake again.
Supporting smartSleep, means messages that should be send to a sleeping node should be buffered. When the node sends a heartbeat, buffered messages should be send to the node.
From: https://www.mysensors.org/download/sensor_api_20
Sleeping
To save battery it is crucial to sleep you node as much as possible. The node can wake up from external interrupts or by a timer.
Each sleep function has a "smart" variant, which sends heartbeat and process incoming messages before going to sleep. This is useful for sending out firmwares or commands for sleeping nodes. The controller must support buffering of messages and send them when node wakes up.
The smartSleep function tells the controller a node is asleep and sends a heartbeat when awake again.
Supporting smartSleep, means messages that should be send to a sleeping node should be buffered. When the node sends a heartbeat, buffered messages should be send to the node.
From: https://www.mysensors.org/download/sensor_api_20
Sleeping
To save battery it is crucial to sleep you node as much as possible. The node can wake up from external interrupts or by a timer.
Each sleep function has a "smart" variant, which sends heartbeat and process incoming messages before going to sleep. This is useful for sending out firmwares or commands for sleeping nodes. The controller must support buffering of messages and send them when node wakes up.