MySensors Library & Examples  2.3.2-38-gaa76d26
Macros
+ Collaboration diagram for Sleep:

Detailed Description

These options control sleep configurations.

Macros

#define MY_SLEEP_TRANSPORT_RECONNECT_TIMEOUT_MS   (10*1000ul)
 Timeout (in ms) to re-establish link if node is send to sleep and transport is not ready.
 
#define MY_SMART_SLEEP_WAIT_DURATION_MS   (500ul)
 The wait period (in ms) before going to sleep when using smartSleep-functions. More...
 
#define MY_SLEEP_HANDLER
 Define this to enable the custom pre- & post-sleep handler. More...
 

Macro Definition Documentation

◆ MY_SLEEP_HANDLER

#define MY_SLEEP_HANDLER

Define this to enable the custom pre- & post-sleep handler.

Sleep handler is invoked right before entering the sleep function, as well a just after the sleep completes. Applications can use this handler to turn off peripherals or put pins into a best possible low power state according to the concrete hardware design.

Definition at line 2386 of file MyConfig.h.

◆ MY_SMART_SLEEP_WAIT_DURATION_MS

#define MY_SMART_SLEEP_WAIT_DURATION_MS   (500ul)

The wait period (in ms) before going to sleep when using smartSleep-functions.

This period has to be long enough for controller to be able to send out potential buffered messages.

Definition at line 1271 of file MyConfig.h.