how can I put nrf52832 in the system on sleep mode on advertising timeout?
Currently, on timeout, the device is going in system off mode and restarting on interrupt.
how can I put nrf52832 in the system on sleep mode on advertising timeout?
Currently, on timeout, the device is going in system off mode and restarting on interrupt.
Hello,
If you comment out, or remove the sleep_mode_enter() from
on_adv_evt() -> case BLE_ADV_EVT_IDLE:
the device will not enter system off mode.
By commenting out this line, the on_adv_evt() will finish without going to system_off, and the main() loop will resume, and idle_state_handle() / sd_app_evt_wait() will resume system on mode.
Best regards,
Edvin
Hello,
If you comment out, or remove the sleep_mode_enter() from
on_adv_evt() -> case BLE_ADV_EVT_IDLE:
the device will not enter system off mode.
By commenting out this line, the on_adv_evt() will finish without going to system_off, and the main() loop will resume, and idle_state_handle() / sd_app_evt_wait() will resume system on mode.
Best regards,
Edvin