Hi,
i have a setup where i have an ESP32 acting as a BLE mesh provisioner for a number of nodes. All nodes use static OOB as authentication, but each have their own OOB data.
I have tried simply using the provisioner example, and then overwriting the static oob data when in "recv_unprov_adv_pkt" using memcpy, but using this scheme the connection always fails.
It seems that when i call "esp_ble_mesh_init" with the provisioning data, the oob is copied, and can no longer be changed. Is that correct?
BLE Mesh provisioner switch static OOB
Re: BLE Mesh provisioner switch static OOB
I know realize that is a question of timing, as i have gotten it to work with a single device.
If device A requests provisioning and i the overwrite the OOB data, and then device B requests provisioning and i again overwrite the OOB data, and then i finally start provisioning device A, I'm of course going to have the wrong OOB data.
My question then becomes: is there a way to to notified (in the prov callback) whenever provisioning of a device starts?
I know of the PROV_LINK_OPEN event, but in that case i don't have the UUID of the device.
If device A requests provisioning and i the overwrite the OOB data, and then device B requests provisioning and i again overwrite the OOB data, and then i finally start provisioning device A, I'm of course going to have the wrong OOB data.
My question then becomes: is there a way to to notified (in the prov callback) whenever provisioning of a device starts?
I know of the PROV_LINK_OPEN event, but in that case i don't have the UUID of the device.
Re: BLE Mesh provisioner switch static OOB
Hi,piiiil wrote: ↑Thu Sep 19, 2019 11:47 amI know realize that is a question of timing, as i have gotten it to work with a single device.
If device A requests provisioning and i the overwrite the OOB data, and then device B requests provisioning and i again overwrite the OOB data, and then i finally start provisioning device A, I'm of course going to have the wrong OOB data.
My question then becomes: is there a way to to notified (in the prov callback) whenever provisioning of a device starts?
I know of the PROV_LINK_OPEN event, but in that case i don't have the UUID of the device.
This event don't has device uuid,You can cache uuid before starting the distribution network, at ESP_BLE_MESH_PROVISIONER_RECV_UNPROV_ADK_PKT_EVT.
Who is online
Users browsing this forum: Google [Bot], ok-home and 140 guests