This module provides support for provisioning over GATT.
More...
This module provides support for provisioning over GATT.
PB-GATT is used for provisioning mesh devices by (legacy) devices that only support the GATT bearer.
- Note
- The GATT service exposed by this module shall be removed from the GATT table after the device has been successfully provisionined. As of the current Nordic SoftDevice versions, this is only possible by "restarting" it. This means that the user has to disable and re-enable the SoftDevice after the provisioning has successfully completed.
-
The GATT connection should support an MTU of 69 bytes or more when PB-GATT is used, ref. Bluetooth Mesh Profile Specification (MshPRFv1.0.1) section 7.1.2.2.2.
◆ nrf_mesh_prov_bearer_gatt_init()
Initializes and sets up the PB-GATT service (through the Mesh GATT interface).
- Parameters
-
[in,out] | p_bearer_gatt | Pointer to PB-GATT bearer context structure. |
- Return values
-
NRF_SUCCESS | Successfully initialized PB-GATT bearer interface. |
NRF_ERROR_NULL | Unexpected NULL pointer in function arguments. |
◆ nrf_mesh_prov_bearer_gatt_interface_get()
Gets the provisioning bearer interface for the PB-GATT bearer.
- Note
- This function is to be used in conjunction with nrf_mesh_prov_bearer_add().
- Parameters
-
[in,out] | p_bearer_gatt | Pointer to a PB-GATT bearer context structure. |
- Returns
- A pointer to the bearer interface for the PB-GATT bearer.