MeshX 0.3
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.
|
Implementation of the BLE Mesh Configuration Server for the MeshX platform. This file contains the initialization, callback handling, and utility functions for managing the BLE Mesh Configuration Server model. More...
Go to the source code of this file.
Functions | |
static void | meshx_ble_mesh_config_server_cb (esp_ble_mesh_cfg_server_cb_event_t event, const esp_ble_mesh_cfg_server_cb_param_t *param) |
BLE Mesh Configuration Server callback function. | |
meshx_err_t | meshx_plat_config_srv_init (void) |
Initializes the MeshX platform configuration server. | |
meshx_err_t | meshx_plat_get_config_srv_instance (meshx_ptr_t *p_conf_srv) |
Retrieve the instance of the BLE Mesh configuration server. | |
meshx_err_t | meshx_plat_get_config_srv_model (meshx_ptr_t p_model) |
Retrieves the configuration server model for the BLE Mesh. | |
Variables | |
static MESHX_CFG_SRV | meshx_config_server_instance |
static MESHX_MODEL | meshx_config_server_model |
Implementation of the BLE Mesh Configuration Server for the MeshX platform. This file contains the initialization, callback handling, and utility functions for managing the BLE Mesh Configuration Server model.
Copyright (c) 2024 - 2025 MeshX
The Configuration Server is responsible for handling configuration messages such as adding keys, setting publication parameters, and managing subscriptions. It provides an interface for the application to interact with the BLE Mesh stack.
Definition in file esp_cfg_srv_model.c.
|
static |
BLE Mesh Configuration Server callback function.
Handles state change events and dispatches them to the appropriate callbacks registered with the configuration server.
[in] | event | Configuration server event type. |
[in] | param | Pointer to the BLE Mesh Configuration Server callback parameters. |
Definition at line 54 of file esp_cfg_srv_model.c.
meshx_err_t meshx_plat_config_srv_init | ( | void | ) |
Initializes the MeshX platform configuration server.
This function sets up the necessary resources and configurations for the MeshX BLE Mesh configuration server. It should be called during the initialization phase of the application to ensure proper operation of the MeshX BLE Mesh stack.
Definition at line 95 of file esp_cfg_srv_model.c.
meshx_err_t meshx_plat_get_config_srv_instance | ( | meshx_ptr_t * | p_conf_srv | ) |
Retrieve the instance of the BLE Mesh configuration server.
This function provides access to the BLE Mesh configuration server instance.
[out] | p_conf_srv | Pointer to a variable where the configuration server instance will be stored. The caller must ensure that the pointer is valid and non-NULL. |
meshx_err_t
on failure. Definition at line 107 of file esp_cfg_srv_model.c.
meshx_err_t meshx_plat_get_config_srv_model | ( | meshx_ptr_t | p_model | ) |
Retrieves the configuration server model for the BLE Mesh.
This function provides access to the configuration server model used in the BLE Mesh implementation. The retrieved model can be used for configuring and managing the mesh network.
[out] | p_model | Pointer to a variable where the address of the configuration server model will be stored. The caller must ensure that the pointer is valid. |
meshx_err_t
on failure. Definition at line 119 of file esp_cfg_srv_model.c.
|
static |
Definition at line 19 of file esp_cfg_srv_model.c.
|
static |
Definition at line 38 of file esp_cfg_srv_model.c.