nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ emds_clear()

int emds_clear ( void )

#include <include/emds/emds.h>

Clear flash areas allocated for the emergency data storage.

This function erases all the flash areas allocated for the emergency data. Calling of this API is optional for emergency data storage working algorithms, since EMDS erases the flash areas before storing data if needed.

Return values
0Success
-ECANCELEDerrno code if it was called before emds_init
-EIOerrno code if error occurs during erasure.