Provisioning Manager

Pladi_86
Posts: 3
Joined: Sat Aug 28, 2021 11:53 pm

Provisioning Manager

Postby Pladi_86 » Mon Nov 29, 2021 4:11 pm

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

YJM
Espressif staff
Espressif staff
Posts: 304
Joined: Fri Feb 26, 2021 10:30 am

Re: Provisioning Manager

Postby YJM » Tue Nov 30, 2021 6:11 am

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

karunt
Posts: 111
Joined: Sat Apr 03, 2021 7:58 am

Re: Provisioning Manager

Postby karunt » Wed Dec 01, 2021 9:40 am

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.

laukik-hase
Espressif staff
Espressif staff
Posts: 6
Joined: Sun Jul 04, 2021 5:25 am

Re: Provisioning Manager

Postby laukik-hase » Fri Dec 03, 2021 7:03 am

Hello,

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)​
​ 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

karunt
Posts: 111
Joined: Sat Apr 03, 2021 7:58 am

Re: Provisioning Manager

Postby karunt » Sat Dec 11, 2021 4:51 pm

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.

karunt
Posts: 111
Joined: Sat Apr 03, 2021 7:58 am

Re: Provisioning Manager

Postby karunt » Wed Jan 12, 2022 5:15 am

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: Google [Bot] and 2 guests