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.
|
This header file defines the provisioning server interface for the MeshX BLE Mesh stack. It includes data structures, enumerations, and function declarations for managing BLE Mesh provisioning operations, including node and provisioner functionalities. More...
Go to the source code of this file.
Typedefs | |
typedef control_task_msg_handle_t | prov_srv_cb_t |
typedef control_task_msg_evt_provision_t | prov_evt_t |
typedef struct meshx_ble_mesh_prov_srv_param | meshx_prov_srv_param_t |
Enumerations | |
enum | meshx_prov_bearer_t { MESHX_PROV_ADV = MESHX_BIT(0) , MESHX_PROV_GATT = MESHX_BIT(1) } |
enum | meshx_prov_oob_info_t { MESHX_PROV_OOB_OTHER = MESHX_BIT(0) , MESHX_PROV_OOB_URI = MESHX_BIT(1) , MESHX_PROV_OOB_2D_CODE = MESHX_BIT(2) , MESHX_PROV_OOB_BAR_CODE = MESHX_BIT(3) , MESHX_PROV_OOB_NFC = MESHX_BIT(4) , MESHX_PROV_OOB_NUMBER = MESHX_BIT(5) , MESHX_PROV_OOB_STRING = MESHX_BIT(6) , MESHX_PROV_CERT_BASED = MESHX_BIT(7) , MESHX_PROV_RECORDS = MESHX_BIT(8) , MESHX_PROV_OOB_ON_BOX = MESHX_BIT(11) , MESHX_PROV_OOB_IN_BOX = MESHX_BIT(12) , MESHX_PROV_OOB_ON_PAPER = MESHX_BIT(13) , MESHX_PROV_OOB_IN_MANUAL = MESHX_BIT(14) , MESHX_PROV_OOB_ON_DEV = MESHX_BIT(15) } |
Functions | |
meshx_err_t | meshx_prov_srv_notify_plat_event (meshx_prov_srv_param_t *param) |
Notify the model event to the application. | |
meshx_err_t | meshx_plat_init_prov (const uint8_t *uuid) |
Initialize provisioning parameters. | |
meshx_ptr_t | meshx_plat_get_prov (void) |
Get the provisioning parameters. | |
This header file defines the provisioning server interface for the MeshX BLE Mesh stack. It includes data structures, enumerations, and function declarations for managing BLE Mesh provisioning operations, including node and provisioner functionalities.
Copyright (c) 2024 - 2025 MeshX
The file provides definitions for provisioning events, callback parameters, and provisioning bearer and OOB information types. It also includes APIs for initializing and retrieving provisioning parameters.
Definition in file meshx_ble_mesh_prov_srv.h.
typedef struct meshx_ble_mesh_prov_srv_param meshx_prov_srv_param_t |
This enum value is associated with bt_mesh_prov_bearer_t in mesh_main.h
Definition at line 24 of file meshx_ble_mesh_prov_srv.h.
Definition at line 23 of file meshx_ble_mesh_prov_srv.h.
enum meshx_prov_bearer_t |
Enumerator | ||
---|---|---|
MESHX_PROV_ADV | MESHX_BIT(0) | |
MESHX_PROV_GATT | MESHX_BIT(1) |
Definition at line 27 of file meshx_ble_mesh_prov_srv.h.
Definition at line 34 of file meshx_ble_mesh_prov_srv.h.
meshx_ptr_t meshx_plat_get_prov | ( | void | ) |
Get the provisioning parameters.
This function returns a pointer to the global provisioning parameters.
Definition at line 78 of file esp_prov_srv_model.c.
meshx_err_t meshx_plat_init_prov | ( | const uint8_t * | uuid | ) |
Initialize provisioning parameters.
This function initializes the provisioning parameters by copying the UUID from the provided server configuration and registering the provisioning callback.
uuid | Pointer to the UUID of the device. |
Definition at line 59 of file esp_prov_srv_model.c.
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. |
Definition at line 402 of file meshx_prov_srv.c.