Page 1 of 1

Provisioning: Pass data from device to client

Posted: Fri Nov 04, 2022 2:47 pm
by gulliverr
Hello all,
we are using the component "wifi_provisioning/manager" for provisioning a device over BLE.
Is there a way to pass data (a single string that we don't want in the advertisement phase) from the device, back to the client?
The "custom_prov_data_handler" from the example code is for supporting the other direction from what I'm looking for.
Thank you

Re: Provisioning: Pass data from device to client

Posted: Tue Nov 15, 2022 2:27 pm
by gulliverr
This should be a common need when you provision a device over BLE and want this device to connect to a server which will be identified in a unique way for each account/user.
Sending device's serial number for example to the server and to the app on a phone during provisioning, would help matching the app to the server's device so that the app can follow that account without having to keep a BLE connection all the time.

Re: Provisioning: Pass data from device to client

Posted: Thu Nov 17, 2022 8:44 am
by gulliverr
After a little research we found out that we can hijack/use the UUID field used during advertisement to include the serial number.
This is a dirty solution, we will keep looking for something better...