![]() |
Wirepas SDK
|
Go to the source code of this file.
Typedefs | |
typedef bool(* | setup_provisioning_end_cb_f) (uint8_t result) |
Provisioning end callback. More... | |
typedef void(* | setup_provisioning_user_data_cb_f) (uint32_t id, uint8_t type, uint8_t *data, uint8_t len) |
Provisioning user data callback. More... | |
typedef void *(* | setup_provisioning_joining_beacon_rx_cb_f) (void *beacons) |
Provisioning joining beacon RX callback. More... | |
Functions | |
app_setup_res_e | App_Setup (const app_setup_conf_t *conf) |
Setup configuration from application persistent memory. More... | |
Data Structures | |
struct | app_setup_conf |
Application setup configuration. More... | |
struct | app_setup_conf::setup_provisioning_conf |
Provisioning library callbacks. 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... | |
typedef bool(* setup_provisioning_end_cb_f) (uint8_t result) |
Provisioning end callback.
Provisioning library callbacks are provided as custom types that fulfill the signatures of provisioning callback types, without needing a dependency to provisioning library, which is not needed if provisioning is not used.
[in] | result | Provisioning result |
Definition at line 77 of file app_setup.h.
typedef void*(* setup_provisioning_joining_beacon_rx_cb_f) (void *beacons) |
Provisioning joining beacon RX callback.
[in] | beacons | A buffer of joining beacons |
Definition at line 99 of file app_setup.h.
typedef void(* setup_provisioning_user_data_cb_f) (uint32_t id, uint8_t type, uint8_t *data, uint8_t len) |
Provisioning user data callback.
[in] | id | Id of the received item |
[in] | type | CBOR type of received item |
[in] | data | Received data |
[in] | len | Length of the data |
Definition at line 87 of file app_setup.h.
app_setup_res_e App_Setup | ( | const app_setup_conf_t * | conf | ) |
Setup configuration from application persistent memory.
struct app_setup_conf |
Application setup configuration.
Definition at line 104 of file app_setup.h.
Data Fields | ||
---|---|---|
struct setup_provisioning_conf | provisioning |
struct app_setup_conf::setup_provisioning_conf |
Provisioning library callbacks.
Definition at line 109 of file app_setup.h.
Data Fields | ||
---|---|---|
setup_provisioning_end_cb_f | end_cb |
Provisioning end callback |
setup_provisioning_joining_beacon_rx_cb_f | joining_beacon_rx_cb |
Provisioning joining beacon RX callback |
setup_provisioning_user_data_cb_f | user_data_cb |
Provisioning user data callback |
enum 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.
Definition at line 23 of file app_setup.h.