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

Proper way to shutdown an application

I am writing a basic health device application, It starts, loads saved data, starts advertising, takes measurements, if a connection occurs the data is transferred, other wise saved, when done with measurements, the device is to shut down. If connected, that would be a disconnect.

Now I want to shut down softdevice, save data, and quit (turn off completely except maybe a CMOS if there is one). What is the proper procedure? In the health device examples, the softdevice_handler_sd_disable() is never called but the softdevice_enable() is always called.

Parents Reply Children
Related