Hi,
I have a custom application built using the Simple BLE peripheral example. It has two main application tasks happening.
1) The SimpleBLE peripheral task that happens every 5s to advertise.
2) The Custom sensor sampling task that I have setup which happens every 1s.
I would like the system to go to sleep and wake up based on the specific sensor value. I have enabled the power saving option on the preprocessor. And my assumption is that the power saver driver automatically puts the system to sleep when there are no application task/task timers running. Please correct me if I am wrong.
And hence based on a senor value I am currently turning off the timers for the SimpleBLE peripheral task and custom sensor task. But I do not see the power consumption going down.
I would to like the device to be in sleep when I stop these tasks and wake up back on an interrupt. I am not currently modifying the Sleep mode registers myself. Is that the right way to proceed or to stick with the power saving driver?
Thanks,
Venkat