esp_ble_mesh_set_unprovisioned_device_name() function
Using this function, an unprovisioned device can set its own device name, which will be broadcasted in its advertising data.
Syntax
esp_err_t esp_ble_mesh_set_unprovisioned_device_name(const char *name); Arguments
name
Unprovisioned device name
Return value
ESP_OK on success or error code otherwise.
Notes
This API applicable to PB-GATT mode only by setting the name to the scan response data, it doesn't apply to PB-ADV mode.
esp_ble_mesh_set_unprovisioned_device_name() calls 2 functions:
![]()
esp_ble_mesh_set_unprovisioned_device_name()
esp_ble_mesh_set_unprovisioned_device_name() reads 7 variables and writes 3 variables:
![]()
esp_ble_mesh_set_unprovisioned_device_name()