espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
431 stars 145 forks source link

Only reset WIFI but does not power off (MEGH-4725) #271

Closed kongshuiJ closed 11 months ago

kongshuiJ commented 1 year ago

Answers checklist.

General issue report

I found that all demos will power off and restart when resetting WIFI. May I ask if there is any interface that can only reset WIFI but does not power off?

shahpiyushv commented 11 months ago

@kongshuiJ , currently, this is not supported. One primary reason is that we use BLE provisioning as default and once provisioning is finished, the BLE's memory is freed up. It cannot be re-allocated in the same boot cycle. However, if it is ok to retain BLE memory throughout the lifetime of the device, there is one way which was introduced some time back in wifi provisioning in esp-idf (the same component that RainMaker uses). Going ahead, we can try using the same logic here.

kongshuiJ commented 11 months ago

Hi @shahpiyushv . Thank you very much for your answer.