Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
+ Collaboration diagram for Sleep API References:

Functions

void tr_allow_sleep (zb_bool_t allow)
 API to allow app to disable or enable sleep.
 
zb_bool_t tr_check_for_sleep (zb_uint32_t sleep_time_ms)
 API to check to see if sleep is allowed.
 

Detailed Description



Function Documentation

◆ tr_allow_sleep()

void tr_allow_sleep ( zb_bool_t allow)

API to allow app to disable or enable sleep.

Parameters
allowZB_TRUE to allow device to sleep, ZB_FALSE to prevent sleep

◆ tr_check_for_sleep()

zb_bool_t tr_check_for_sleep ( zb_uint32_t sleep_time_ms)

API to check to see if sleep is allowed.

Parameters
sleep_time_mssleep duration in milliseconds
Returns
ZB_TRUE if ok to sleep, ZB_FALSE if not