hii....
1. I want to know something about this example. i understand that device advertise for 10 seconds and stop advertising . if device not connected it goes to Deep sleep otherwise its goes to Extended sleep mode. if we press button the device wake up from deep sleep and start advertising again for particular time after that it stops advertising and go back to deep sleep and process continues is it right?
2. is it possible app_easy_timer instead of button call back to wake up from deep sleep?
3. if i want to keep a variable value(ie not restore the variable value when device wake up) which sleep mode is you preferred?
4.is it any function call if we again back to sleep mode after device wake up?
Device:
Hi alan.a,
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/how-program-deep-sleep-ble-timer-waking
Thanks, PM_Dialog
Thanks for your replay.
Can you provide an example how variable stored in retention RAM when device go to deep sleep mode?
Hi alan.a,
As I have already mentioned in my previous post, check how the mnf_data variable is stored in the Ret-RAM in user_sleepmode.c file.
struct mnf_specific_data_ad_structure mnf_data __attribute__((section("retention_mem_area0"),zero_init)); // @RETENTION MEMORY
I would like to let you know, that if you found any answer useful please mark it as accepted.
Thanks, PM_Dialog