Provisioning: Pass data from device to client

gulliverr
Posts: 7
Joined: Tue Nov 01, 2022 10:38 am

Provisioning: Pass data from device to client

Postby gulliverr » Fri Nov 04, 2022 2:47 pm

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

gulliverr
Posts: 7
Joined: Tue Nov 01, 2022 10:38 am

Re: Provisioning: Pass data from device to client

Postby gulliverr » Tue Nov 15, 2022 2:27 pm

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.

gulliverr
Posts: 7
Joined: Tue Nov 01, 2022 10:38 am

Re: Provisioning: Pass data from device to client

Postby gulliverr » Thu Nov 17, 2022 8:44 am

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...

Who is online

Users browsing this forum: No registered users and 257 guests