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_ble_mesh_config_srv.h File Reference

Header file for MeshX BLE Mesh Configuration Server. More...

Go to the source code of this file.

Data Structures

struct  meshx_state_change_cfg_mod_pub_set_t
 Configuration Server model related context. More...
struct  meshx_state_change_cfg_mod_pub_va_set_t
struct  meshx_state_change_cfg_model_sub_add_t
struct  meshx_state_change_cfg_model_sub_delete_t
struct  meshx_state_change_cfg_netkey_add_t
struct  meshx_state_change_cfg_netkey_update_t
struct  meshx_state_change_cfg_netkey_delete_t
struct  meshx_state_change_cfg_appkey_add_t
struct  meshx_state_change_cfg_appkey_update_t
struct  meshx_state_change_cfg_appkey_delete_t
struct  meshx_state_change_cfg_model_app_bind_t
struct  meshx_state_change_cfg_model_app_unbind_t
struct  meshx_state_change_cfg_kr_phase_set_t
union  meshx_cfg_srv_state_change_t
 Configuration Server model state change value union. More...
struct  meshx_config_srv_cb_param

Typedefs

typedef control_task_msg_handle_t config_srv_cb_t
typedef control_task_msg_evt_config_t config_evt_t
typedef struct meshx_config_srv_cb_param meshx_config_srv_cb_param_t

Functions

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.

Detailed Description

Header file for MeshX BLE Mesh Configuration Server.

Copyright (c) 2024 - 2025 MeshX

This file contains the definitions, data structures, and function declarations for the MeshX BLE Mesh Configuration Server. It provides the necessary APIs and context for managing the configuration server model in a BLE Mesh network.

Author
Pranjal Chanda

Typedef Documentation

◆ config_evt_t

◆ config_srv_cb_t

◆ meshx_config_srv_cb_param_t

Function Documentation

◆ meshx_plat_config_srv_init()

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.

Returns
  • MESHX_SUCCESS on successful initialization.
  • Appropriate error code from meshx_err_t on failure.

◆ meshx_plat_get_config_srv_instance()

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.

Parameters
[out]p_conf_srvPointer to a variable where the configuration server instance will be stored. The caller must ensure that the pointer is valid and non-NULL.
Returns
  • MESHX_SUCCESS on success.
  • Appropriate error code from meshx_err_t on failure.

◆ meshx_plat_get_config_srv_model()

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.

Parameters
[out]p_modelPointer to a variable where the address of the configuration server model will be stored. The caller must ensure that the pointer is valid.
Returns
  • MESHX_SUCCESS on success.
  • Appropriate error code from meshx_err_t on failure.