Hi,
The provisioning service using WIFI SoftAP worked well for me.
Can someone please point me on how to add provisioning data to this service. I need to include more than just WIFI PASS and SSID.
Can someone point me to the right direction on where to do this change.
Not quite clear.
Thank You
Provisioning Manager
Re: Provisioning Manager
You can add custom endpoint with wifi_prov_mgr_endpoint_register. The more details please refer to https://github.com/espressif/esp-idf/bl ... #L300-L308
Re: Provisioning Manager
Is there also a way for provisioning manager to give provisioning status updates to mobile device app? Would it need to write to a GATT characteristic to do so? Appreciate some direction - really lost with this part.
-
- Posts: 6
- Joined: Sun Jul 04, 2021 5:25 am
Re: Provisioning Manager
Hello,
The following function is responsible for adding the GATT characteristic.
This function uses the function - as a callback to read from/write to the connected BLE device.
You can check these functions (they belong to the protocomm component) out here if they help you -
- https://github.com/espressif/esp-idf/bl ... ble.c#L628
- https://github.com/espressif/esp-idf/bl ... ble.c#L292
Thanks,
Laukik
The following function is responsible for adding the GATT characteristic.
Code: Select all
ble_gatt_add_characteristics(struct ble_gatt_chr_def *characteristics, int idx)
This function uses the function -
Code: Select all
gatt_svr_chr_access(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg)
You can check these functions (they belong to the protocomm component) out here if they help you -
- https://github.com/espressif/esp-idf/bl ... ble.c#L628
- https://github.com/espressif/esp-idf/bl ... ble.c#L292
Thanks,
Laukik
Re: Provisioning Manager
That's very helpful. But what I'm struggling with is how does wifi provisioning manager communicate with an external device to let a user know that the provisioning was successful or it failed. Does wifi provisioning manager not write anything to a GATT characteristic that can be picked up by an external device? Do I need to create that functionality separately? Any help with that would be apprecaited.
Re: Provisioning Manager
Can someone please guide me on which function ESP32 wifi_provisioning example uses to update a characteristic when a client writes wifi credentials to the ESP32 device via BLE? I'm at a loss after tons of hours of research. Thanks.
Who is online
Users browsing this forum: Bing [Bot] and 214 guests