|
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.
|
This file contains the implementation of the provisioning process for the BLE mesh node. Migrated to C++ to align with the modern MeshX element architecture. More...
#include <meshx_c_header.h>Data Structures | |
| struct | prov_cb_evt_ctrl_task_evt_table |
| Structure to map provisioning callback events to control task events. More... | |
Macros | |
| #define | CONTROL_TASK_PROV_EVT_MASK |
| Mask for control task provisioning events. | |
| #define | MESHX_PROV_SRV_CLIENT_EVENT_BMAP (CONTROL_TASK_MSG_EVT_SYSTEM_FRESH_BOOT) |
| #define | MESHX_PROV_SRV_SERVER_EVENT_BMAP (CONTROL_TASK_MSG_EVT_SYSTEM_STACK_READY) |
Typedefs | |
| typedef struct prov_cb_evt_ctrl_task_evt_table | prov_cb_evt_ctrl_task_evt_table_t |
| Structure to map provisioning callback events to control task events. | |
Variables | |
| static prov_cb_evt_ctrl_task_evt_table_t | prov_cb_evt_ctrl_task_evt_table [MESHX_PROV_EVT_MAX] = {} |
| Table mapping provisioning events to control task events. | |
| static meshx_os_timer_t * | g_boot_timer |
This file contains the implementation of the provisioning process for the BLE mesh node. Migrated to C++ to align with the modern MeshX element architecture.
Copyright © 2024 - 2025 MeshX
| #define CONTROL_TASK_PROV_EVT_MASK |
Mask for control task provisioning events.
| #define MESHX_PROV_SRV_CLIENT_EVENT_BMAP (CONTROL_TASK_MSG_EVT_SYSTEM_FRESH_BOOT) |
| #define MESHX_PROV_SRV_SERVER_EVENT_BMAP (CONTROL_TASK_MSG_EVT_SYSTEM_STACK_READY) |
| typedef struct prov_cb_evt_ctrl_task_evt_table prov_cb_evt_ctrl_task_evt_table_t |
Structure to map provisioning callback events to control task events.
|
static |
|
static |
Handle node reset event.
|
static |
|
static |
| meshx_err_t meshx_init_prov | ( | dev_struct_t * | p_dev, |
| const meshx_prov_params_t * | prov_cfg ) |
Initialize provisioning parameters.
This function initializes the provisioning parameters by copying the UUID from the provided server configuration and registering the provisioning callback.
| [in] | p_dev | Pointer to the device structure. |
| [in] | prov_cfg | Pointer to the provisioning parameters structure containing the UUID. |
|
static |
Handles provisioning control task events.
|
static |
Control task handler for the provisioning server.
| bool meshx_prov_srv_is_provisioned | ( | void | ) |
Checks if the device is provisioned.
This function returns whether the device has been provisioned.
| meshx_err_t meshx_prov_srv_meshx_reg_cb | ( | void | ) |
| meshx_err_t meshx_prov_srv_notify_plat_event | ( | meshx_prov_srv_param_t * | param | ) |
Notify the model event to the application.
This function notifies the application of a model event by invoking the registered provisioning callback with the provided event parameters.
| [in] | param | Pointer to the event parameters structure. |
| meshx_err_t meshx_prov_srv_reg_el_client_cb | ( | prov_srv_cb_t | cb | ) |
Register a callback function for provisioning events.
This function registers a callback function that will be called when certain provisioning events occur.
| [in] | cb | The callback function to register. |
| meshx_err_t meshx_prov_srv_reg_el_server_cb | ( | prov_srv_cb_t | cb | ) |
Register a callback function for provisioning events.
This function registers a callback function that will be called when certain provisioning events occur.
| [in] | cb | The callback function to register. |
| meshx_err_t meshx_prov_srv_reg_from_ble_cb | ( | void | ) |
|
static |
|
static |
Table mapping provisioning events to control task events.