This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Wakeup from sd_app_evt_wait() on BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST

I have customized the "nordic_blinky" app. My app contains a call to sd_app_evt_wait() in main (low power ON mode).

It seems that after the write connection event (BLE_GATTS_EVT_WRITE) the cpu wakes up and continues processing post sd_app_evt_wait() in main().That is the behaviour that I need in my application in order to process some sensor values in main() after every connection event. But when I issue a read event and BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST is handled, then the wakeup from sa_app_evt_wait() is not happening!

My questions:

1) What could be the reason for the different behaviour of BLE_GATTS_EVT_WRITE and BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST in terms of wakeup from sd_app_evt_wait()?

2) How can I resume from sd_app_evt_wait() after BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST is handled?

(I read somewhere in this forum that every interrupt could wakeup the cpu core, but I can not find the interrupt that is triggered by BLE_GATTS_EVT_WRITE connection event)

Thanks, Stefan

Related