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.
Loading...
Searching...
No Matches
meshx_ble_mesh_config_srv.h
Go to the documentation of this file.
1
13
14#ifndef __MESHX_BLE_MESH_CONFIG_SRV_H__
15#define __MESHX_BLE_MESH_CONFIG_SRV_H__
16
18#include "meshx_control_task.h"
19
22
26
28typedef struct {
29 uint16_t element_addr;
30 uint16_t pub_addr;
31 uint16_t app_idx;
32 bool cred_flag;
33 uint8_t pub_ttl;
34 uint8_t pub_period;
36 uint16_t company_id;
37 uint16_t model_id;
39
41typedef struct {
42 uint16_t element_addr;
43 uint8_t label_uuid[16];
44 uint16_t app_idx;
45 bool cred_flag;
46 uint8_t pub_ttl;
47 uint8_t pub_period;
49 uint16_t company_id;
50 uint16_t model_id;
52
54typedef struct {
55 uint16_t element_addr;
56 uint16_t sub_addr;
57 uint16_t company_id;
58 uint16_t model_id;
60
62typedef struct {
63 uint16_t element_addr;
64 uint16_t sub_addr;
65 uint16_t company_id;
66 uint16_t model_id;
68
70typedef struct {
71 uint16_t net_idx;
72 uint8_t net_key[16];
74
76typedef struct {
77 uint16_t net_idx;
78 uint8_t net_key[16];
80
82typedef struct {
83 uint16_t net_idx;
85
87typedef struct {
88 uint16_t net_idx;
89 uint16_t app_idx;
90 uint8_t app_key[16];
92
94typedef struct {
95 uint16_t net_idx;
96 uint16_t app_idx;
97 uint8_t app_key[16];
99
101typedef struct {
102 uint16_t net_idx;
103 uint16_t app_idx;
105
107typedef struct {
108 uint16_t element_addr;
109 uint16_t app_idx;
110 uint16_t company_id;
111 uint16_t model_id;
113
115typedef struct {
116 uint16_t element_addr;
117 uint16_t app_idx;
118 uint16_t company_id;
119 uint16_t model_id;
121
123typedef struct {
124 uint16_t net_idx;
125 uint8_t kr_phase;
127
149
156
170
184
199
200#endif /* __MESHX_BLE_MESH_CONFIG_SRV_H__ */
Common BLE Mesh interface definitions and utility functions.
struct meshx_model meshx_model_t
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
void * meshx_ptr_t
struct meshx_config_srv_cb_param meshx_config_srv_cb_param_t
control_task_msg_evt_config_t config_evt_t
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.
control_task_msg_handle_t config_srv_cb_t
Header file for the control task in the BLE mesh node application.
enum __packed control_task_msg_evt_config control_task_msg_evt_config_t
Enumeration for control task config srv events.
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.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
meshx_cfg_srv_state_change_t state_change
Configuration Server model related context.
Configuration Server model state change value union.
meshx_state_change_cfg_model_app_unbind_t mod_app_unbind
meshx_state_change_cfg_netkey_delete_t netkey_delete
meshx_state_change_cfg_model_sub_add_t mod_sub_add
meshx_state_change_cfg_appkey_delete_t appkey_delete
meshx_state_change_cfg_model_app_bind_t mod_app_bind
meshx_state_change_cfg_mod_pub_set_t mod_pub_set
meshx_state_change_cfg_model_sub_delete_t mod_sub_delete
meshx_state_change_cfg_netkey_update_t netkey_update
meshx_state_change_cfg_mod_pub_va_set_t mod_pub_va_set
meshx_state_change_cfg_netkey_add_t netkey_add
meshx_state_change_cfg_kr_phase_set_t kr_phase_set
meshx_state_change_cfg_appkey_update_t appkey_update
meshx_state_change_cfg_appkey_add_t appkey_add