esp_ble_mesh_init() function
Initialize BLE Mesh module. This API initializes provisioning capabilities and composition data information.
Arguments
prov
Pointer to the device provisioning capabilities. This pointer must remain valid during the lifetime of the BLE Mesh device.
comp
Pointer to the device composition data information. This pointer must remain valid during the lifetime of the BLE Mesh device.
Return value
ESP_OK on success or error code otherwise.
Notes
After calling this API, the device needs to call esp_ble_mesh_prov_enable() to enable provisioning functionality again.
esp_ble_mesh_init() calls 8 functions:
![]()
esp_ble_mesh_init()
esp_ble_mesh_init() reads 7 variables and writes 6 variables:
![]()
esp_ble_mesh_init()