Reputation: 11
Is there any way to keep the ESP32 Provisioning Manager's Bluetooth stack up and running (including any active connection and BLE "endpoints"), long after WiFi provisioning is finished? I.e. not just for a second or two in order to relay provisioning success/failure, but indefinitely?
According to Espressif's provisioning documentation:
If the product does not use the Bluetooth LE or Bluetooth functionality after provisioning is done, almost all the memory can be reclaimed and added into the heap.`
...which suggests that there is the option to keep BLE functionality up and running, post provisioning.
Similarly, the README for Espressif's WiFi Provisioning Manager states:
Right after provisioning is complete, BLE is turned off and disabled to free the memory used by the BLE stack. Though, that is specific to this example, and the user can choose to keep BLE stack intact in their own application.
...which suggests that the user can continue to use the Bluetooth stack after WiFi provisioning is finished.
Although it seems from these resources that it should be possible to keep Bluetooth alive after WiFi provisioning is done, it remains unclear how to do so. I have reviewed all the relevant provisioning-related code samples and documentation I can find, but haven't found any examples or discussion on how to accomplish this.
If anyone knows how, or can point in the direction of code samples that demonstrate how, I'd appreciate your help.
Upvotes: 1
Views: 22