Hi,
I am using nRF52832 with s112 BLE stack and SDK v16.0. I am wondering what is the most proper way for the "idle_state_handle()" method in the main loop.
Currently I am not including "nrf_pwr_mgmt.h" and only use the following lines:
// handle sched/logs static void idle_state_handle(void) { app_sched_execute(); if (NRF_LOG_PROCESS() == false) { sd_app_evt_wait(); } }
However, the ble_peripheriral/ble_app_template sample uses "nrf_pwer_mgmt_run()" like below:
static void idle_state_handle(void) { if (NRF_LOG_PROCESS() == false) { nrf_pwr_mgmt_run(); } }
May I know which method is more energy efficient?
regards,