Table of Contents
In order to conserve energy a node may be put to a ultra-low power mode (so called sleep mode). Sleep mode is available only for nodes that were configured as end device. It is NOT possible to put to sleep coordinator and routers, as the network operation relies on them being active all the time.
The RCM_Sleep function puts the end device into sleep mode. Successful entry into sleep mode is indicated by the RCM_RESULT_OK result code. Sometimes, however, the module may not be willing to go to sleep due to the current state of operation (in ex. the module is receiving or sending packet, or waiting for acknowledgment). In such case the RCM_Sleep function returns RCM_RESULT_BUSY, and the user is encouraged to try to enter sleep mode again after some time (usually some tens of ms).
Once the module enters sleep mode, it will stop to respond to API calls until it is woken up by the RCM_Wakeup function.
The following example illustrates the usage of sleep modes:
Generated on Fri Aug 31 2018 09:37:14 for RCM API Library by 1.8.7