esp_ble_mesh_provisioner_prov_device_with_addr() function
Provision an unprovisioned device and assign a fixed unicast address for it in advance. @note: 1. Currently address type only supports public address and static random address. 2. Bearer must be equal to ESP_BLE_MESH_PROV_ADV or ESP_BLE_MESH_PROV_GATT, since Provisioner will start to provision a device immediately once this function is invoked. And the input bearer must be identical with the one within the parameters of the ESP_BLE_MESH_PROVISIONER_RECV_UNPROV_ADV_PKT_EVT event. 3. If this function is used by a Provisioner to provision devices, the application should take care of the assigned unicast address and avoid overlap of the unicast addresses of different nodes. 4. Recommend to use only one of the functions "esp_ble_mesh_provisioner_add_unprov_dev" and "esp_ble_mesh_provisioner_prov_device_with_addr" by a Provisioner.
Arguments
uuid
Device UUID of the unprovisioned device
addr
Device address of the unprovisioned device
addr_type
Device address type of the unprovisioned device
bearer
Provisioning bearer going to be used by Provisioner
oob_info
OOB info of the unprovisioned device
unicast_addr
Unicast address going to be allocated for the unprovisioned device
Return value
Zero on success or (negative) error code otherwise.
esp_ble_mesh_provisioner_prov_device_with_addr() calls 2 functions:
![]()
esp_ble_mesh_provisioner_prov_device_with_addr()
esp_ble_mesh_provisioner_prov_device_with_addr() reads 10 variables and writes 7 variables:
![]()
esp_ble_mesh_provisioner_prov_device_with_addr()