BLE_Power_Mode_Enter return status

Hi ,while debugging peripheral_server_sleep sample code,I am trying to get the return status of BLE_Power_Mode_Enter() ,since it is in low power mode ,is it possible to ensure that BLE enters sleep mode?

When entering sleep mode, the function BLE_Power_Mode_Enter() doesn’t return true as the processor is asleep (and on wakeup it won’t continue executing this code).

Only in case of failure to enter sleep mode your code will be notified by the return code false.

2 Likes