I am trying to implement a scenario where the system will be sleeping for a mentioned period of time and then wake up and advertise and transfer data over BLE.
I am using RTC2 for this.
What I am currently facing is either the system doesnt go to sleep ie it gets interrupt other than RTC, which on debugging, i found is Radio interrupt.
If i disable this interrupt before going to sleep, the BLE stops working, it doesnt advertise and data is not sent.
Its the same when I disable soft device using function nrf_sdh_disable_request() and enable it again when required with nrf_sdh_continue().
What should I do to make both the things work together? Is anything needed to be done before the system enters sleep mode?