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.
Examples
esp_ble_mesh_init() is referenced by 16 libraries and example projects: