Hello Team, I hope you will be fine.
We are working on a project where we integrated multiple libraries from different projects. We are using soft devices too. Now I want to put the device in sleep mode(all the other events should turn off except the RTC) by short pressing the button and returning back to normal operation by pressing again the same button. The problem is that we cannot use a simple system on sleep mode because we have the GPS Data which is 10 samples per second and will wake the device almost all the time and consume a lot of power. Similarly, we cannot use the system off mode as the device gets reset after that which we don't want. So I want to disable all the events like advertising, scanning, GPS etc. manually by short pressing a button and returning back to normal operation by pressing the same button again. I don't know how will I do it like disabling the advertising, scanning, GPS etc. manually and re-enabling by pressing the same button again. Simply I want the device to be OFF (Except the RTC) by pressing a button and ON by pressing the same button again. Any help regarding this will be highly appreciated.
Kind Regards,
Sami Ul Haq