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

◆ emds_load()

int emds_load ( void )

#include <include/emds/emds.h>

Load all static data from the emergency data storage.

This function needs to be called after the static entries are added, as they are used to select the data to be loaded. The function also needs to be called before the emds_prepare function which will delete all the previously stored data.

Return values
0Success
-ECANCELEDerrno code if it was called before emds_init
-ENOENTerrno code if no valid snapshot was found in any partition
-EIOerrno code if error during reading data