-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wifi_prov_mgr: Add support for continuous (always on) BLE provisionning (IDFGH-4111) #5978
Comments
So would the provisioning manager work correctly if we don't call esp_wifi_disconnect() while the esp is already connected to wifi AP? |
Thanks for raising this feature request. |
I have a similar suggestion -make it easier to extend provision manager and allow it to be integrated with a permanent BLE peripheral, such as bleprph. I was able to do that: completely delete protocomm_nimble.c and replace it by my own code based on bleprph - add provision endpoints to "static const struct ble_gatt_svc_def gatt_svr_svcs", route characteristic read/writes to protocomm_req_handle, call protocomm_handle->sec->open_transport_session on BLE connection and protocomm_handle->sec->close_transport_session on BLE disconnection, etc. |
Hey @jhnlmn, the work you did to integrate the provision manager and a permanent BLE peripheral sounds very interesting and useful. |
I think the "continuous (always on) BLE provisionning" feature is similar to BLUFI |
Completely agree - wifi provisioning example with its provisioning manager and protocomm_nimble is completely useless from a real world perspective. And the lack of support from ESP to help implement a solution for continues provisioning is almost non-existent. Anyhow, the way I've achieved this continuous provision is as follows:
|
Is your feature request related to a problem? Please describe.
I'm successfully using wifi_prov_mgr component to provision esp devices, but some esp devices need to update their wifi settings from time to time, for example if they are regularly moved to a new location.
Then we could erase our device to factory defaults and start again the provisioning manager but I'd rather like the provisioning manager to be always on, so that we can update wifi settings easily at any time through BLE transport.
Describe the solution you'd like
So I'd like wifi_prov_mgr component to add support for a "continuous" mode for BLE transport, which means it is always on, even when esp device is actually already connected to wifi, so that we can update the wifi settings easily.
If we configure custom endpoints, the provisioning manager would also allow to be used as the normal communication manager similarly to the esp_local_ctrl component.
I would also be interested to see a example using both wifi_prov_mgr and esp_local_ctrl components at the same time so that they share the same protocomm instance.
The text was updated successfully, but these errors were encountered: