Wirepas SDK
app_setup.h File Reference

Go to the source code of this file.

Functions

app_setup_res_e App_Setup (void)
 Setup configuration from application persistent memory. More...
 

Enumerations

enum  app_setup_res_e {
  APP_SETUP_RES_OK, APP_SETUP_RES_NO_DATA, APP_SETUP_RES_ERROR, APP_SETUP_RES_NO_APP_PERSISTENT,
  APP_SETUP_RES_INVALID_DATA, APP_SETUP_RES_INVALID_VERSION, APP_SETUP_RES_ERASE_ERROR
}
 Application setup library. More...
 

Function Documentation

◆ App_Setup()

app_setup_res_e App_Setup ( void  )

Setup configuration from application persistent memory.

Returns
app_setup_res_e
Examples
dualmcu_app/app.c, and minimal_app/app.c.

Enumeration Type Documentation

◆ app_setup_res_e

Application setup library.

     This library reads configuration from application persistent area,
     and writes it to stack using SingleMCU API.

Application setup return values.

Enumerator
APP_SETUP_RES_OK 

Success (provisioning initialized if config for it was given).

APP_SETUP_RES_NO_DATA 

No data in application persistent area.

APP_SETUP_RES_ERROR 

Error in setup, see logs for details.

APP_SETUP_RES_NO_APP_PERSISTENT 

No application persistent area.

APP_SETUP_RES_INVALID_DATA 

Data length is invalid

APP_SETUP_RES_INVALID_VERSION 

Data version not supported.

APP_SETUP_RES_ERASE_ERROR 

Error in erasing application persistent area, see log for details.

Definition at line 20 of file app_setup.h.

APP_SETUP_RES_INVALID_DATA
@ APP_SETUP_RES_INVALID_DATA
Definition: app_setup.h:45
APP_SETUP_RES_INVALID_VERSION
@ APP_SETUP_RES_INVALID_VERSION
Definition: app_setup.h:50
APP_SETUP_RES_OK
@ APP_SETUP_RES_OK
Definition: app_setup.h:25
APP_SETUP_RES_NO_APP_PERSISTENT
@ APP_SETUP_RES_NO_APP_PERSISTENT
Definition: app_setup.h:40
APP_SETUP_RES_ERASE_ERROR
@ APP_SETUP_RES_ERASE_ERROR
Definition: app_setup.h:55
APP_SETUP_RES_NO_DATA
@ APP_SETUP_RES_NO_DATA
Definition: app_setup.h:30
APP_SETUP_RES_ERROR
@ APP_SETUP_RES_ERROR
Definition: app_setup.h:35
app_setup_res_e
app_setup_res_e
Application setup library.
Definition: app_setup.h:20