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_prov_srv.h
Go to the documentation of this file.
1/**
2 * Copyright © 2024 - 2025 MeshX
3 *
4 * @file meshx_prov_srv.h
5 * @brief Header file for provisioning related definitions and functions.
6 *
7 * This file contains the definitions and function declarations for provisioning
8 * in the BLE mesh node application.
9 *
10 * @author Pranjal Chanda
11 */
12
13#ifndef __MESHX_PROV__
14#define __MESHX_PROV__
15
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#if CONFIG_ENABLE_PROVISIONING
24
25/**
26 * @brief Initialize provisioning parameters.
27 *
28 * This function initializes the provisioning parameters by copying the UUID from the provided
29 * server configuration and registering the provisioning callback.
30 *
31 * @param[in] p_dev Pointer to the device structure.
32 * @param[in] prov_cfg Pointer to the provisioning parameters structure containing the UUID.
33 *
34 * @return
35 * - MESHX_SUCCESS: Success
36 * - MESHX_FAIL: Failed to register provisioning callback
37 */
39
40/**
41 * @brief Register a callback function for provisioning events.
42 *
43 * This function registers a callback function that will be called when
44 * certain provisioning events occur.
45 *
46 * @param[in] cb The callback function to register.
47 *
48 * @return
49 * - MESHX_SUCCESS: Success
50 * - MESHX_FAIL: Failed to register the callback
51 */
53
54/**
55 * @brief Register a callback function for provisioning events.
56 *
57 * This function registers a callback function that will be called when
58 * certain provisioning events occur.
59 *
60 * @param[in] cb The callback function to register.
61 *
62 * @return
63 * - MESHX_SUCCESS: Success
64 * - MESHX_FAIL: Failed to register the callback
65 */
67
68#endif /* CONFIG_ENABLE_PROVISIONING */
69
70#ifdef __cplusplus
71} /* extern "C" */
72#endif
73
74#endif /* __MESHX_PROV__ */
struct meshx_prov_params meshx_prov_params_t
Structure to hold provisioning parameters.
This header file defines the provisioning server interface for the MeshX BLE Mesh stack....
control_task_msg_handle_t prov_srv_cb_t
Definition meshx_ble_mesh_prov_srv.h:27
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
Platform abstraction layer for MeshX.
meshx_err_t meshx_prov_srv_reg_el_client_cb(prov_srv_cb_t cb)
Register a callback function for provisioning events.
Definition meshx_prov_srv.cpp:283
meshx_err_t meshx_prov_srv_reg_el_server_cb(prov_srv_cb_t cb)
Register a callback function for provisioning events.
Definition meshx_prov_srv.cpp:292
meshx_err_t meshx_init_prov(dev_struct_t *p_dev, const meshx_prov_params_t *prov_cfg)
Initialize provisioning parameters.
Definition meshx_prov_srv.cpp:251