i am using nrf52832 ........
i want to wake up my device from sleep mode ... i have used the command for sleep mode sd_app_evt_wait() ...... i dono what command to give for waking up device from sleep mode
thanks in advance
suggest me an answer
The sd_app_evt_wait() calls __WFE() internally (among other things), so the nRF will wake up on any event/interrupt. A typical wake up source is a RTC compare event or GPIO input interrupt, but it could be anything.
Once I put in sleep mode it will wake up by interrupt and send the data and again I want to put in sleep mode after sending data how ?? Can I put the sleep mode again
You put it in sleep mode by calling sd_app_evt_wait() again. If you look at most of the SoftDevice examples you can see that they call sd_app_evt_wait() in the main loop. This way it always gets called once the interrupts have been processed.
thank you so much ... Einar ... i will implement it and get back
hi.... Einar ... i am confused how to put device in sleep mode before entering into process or function...
i want my device to sleep until it attains threshold ,, it will wake up by threshold and again it should go to sleep
suggest an idea