MeshX initialisation function.
This function initialises the MeshX stack with the given configuration.
244{
245
246 if(!config)
248
250
251
253
254
257
261
264
266
267
270
271
274
275
278
279
282
283
286
287
290
291
294
295
298
299
302
303
306
307#if CONFIG_ENABLE_UNIT_TEST
308
311#endif
312
313 return err;
314}
static meshx_config_t g_config
Definition meshx.c:35
static meshx_err_t meshx_load_persistent_config(meshx_config_t const *config)
Load persistent read-only configuration from flash and apply it.
Definition meshx.c:181
static meshx_err_t meshx_dev_restore(dev_struct_t *pdev, meshx_config_t const *config)
Restore the device state from the NVS.
Definition meshx.c:115
static meshx_err_t meshx_tasks_init(dev_struct_t *pdev)
Initializes application tasks.
Definition meshx.c:92
static meshx_err_t meshx_ble_mesh_init(meshx_config_t *config)
Initializes the BLE Mesh subsystem.
Definition meshx.c:139
struct meshx_config meshx_config_t
meshx_err_t meshx_app_reg_element_callback(meshx_app_data_cb_t cb)
Registers the BLE Mesh application callback.
Definition meshx_api.c:206
meshx_err_t meshx_app_reg_system_events_callback(meshx_app_ctrl_cb_t cb)
Registers the BLE Mesh application control callback.
Definition meshx_api.c:234
meshx_err_t control_task_init(void)
Initialize the control task messaging system.
Definition meshx_control_task.c:45
meshx_err_t meshx_logging_init(const meshx_logging_t *config)
Definition meshx_log.c:88
#define MESHX_LOGI(module_id, format,...)
Definition meshx_log.h:126
#define MESHX_LOG_VERBOSE
Definition meshx_log.h:31
#define CONFIG_MESHX_DEFAULT_LOG_LEVEL
Definition meshx_log.h:66
meshx_err_t meshx_nvs_init(void)
MeshX NVS Initialisation.
Definition meshx_nvs.c:142
meshx_err_t meshx_os_timer_init(void)
Initialize the OS timer module.
Definition meshx_os_timer.c:227
meshx_err_t meshx_serial_init(void)
Initialize the MeshX Serial Protocol handler.
Definition meshx_serial.c:517
Definition meshx_log.h:37
meshx_log_level_t def_log_level
Definition meshx_log.h:38
meshx_err_t init_unit_test_console(void)
Initialize the unit test console.
Definition unit_test.c:103