MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
meshx_model_config.cpp File Reference

Implementation of Config Server Model. More...

Functions

meshx_err_t meshx_init_config_server (void)
meshx_err_t meshx_config_server_cb_reg (config_srv_cb_t cb, uint32_t config_evt_bmap)
meshx_err_t meshx_get_config_srv_model (meshx_ptr_t p_model)

Detailed Description

Implementation of Config Server Model.

Function Documentation

◆ meshx_config_server_cb_reg()

meshx_err_t meshx_config_server_cb_reg ( config_srv_cb_t cb,
uint32_t config_evt_bmap )
297{
298 if (cb == NULL || config_evt_bmap == 0)
299 {
300 return MESHX_INVALID_ARG;
301 }
302
305 config_evt_bmap,
307}
meshx_err_t(* control_task_msg_handle_t)(dev_struct_t *pdev, control_task_msg_evt_t evt, void *params)
Function pointer type for control task message handler.
Definition meshx_control_task.h:188
@ CONTROL_TASK_MSG_CODE_CONFIG
Definition meshx_control_task.h:69
meshx_err_t control_task_msg_subscribe(control_task_msg_code_t msg_code, control_task_msg_evt_t evt_bmap, control_task_msg_handle_t callback)
Subscribe to a control task message.
Definition meshx_control_task.c:142
@ MESHX_INVALID_ARG
Definition meshx_err.h:46

◆ meshx_get_config_srv_model()

meshx_err_t meshx_get_config_srv_model ( meshx_ptr_t p_model)
310{
311 return meshx_plat_get_config_srv_model(p_model);
312}
meshx_err_t meshx_plat_get_config_srv_model(meshx_ptr_t p_model)
Retrieves the configuration server model for the BLE Mesh.

◆ meshx_init_config_server()

meshx_err_t meshx_init_config_server ( void )

Legacy support for Config Server initialization and callback registration. These are provided to support the transition away from elements_c.

285{
286#if CONFIG_ENABLE_CONFIG_SERVER
287 /* In the new architecture, the config server is initialized as part of the root element models.
288 * We just need to ensure the platform layer is initialized.
289 */
291#else
292 return MESHX_NOT_SUPPORTED;
293#endif
294}
meshx_err_t meshx_plat_config_srv_init(void)
Initializes the MeshX platform configuration server.
@ MESHX_NOT_SUPPORTED
Definition meshx_err.h:51