I'm facing an issue when power-cycling my board solves a problem that restarting with `esp_restart()` does not. It seems to be related to some garbage in the persistent/cached WiFi AP data (b/ssid, maybe other). A real power-on restores correct values, but `esp_restart()` fails to. This happens at a customer site, I can't really reproduce the issue locally.
1. Can calling `esp_wifi_stop()` and `esp_wifi_deinit()` before `esp_restart()` help?
2. Can rebooting via watchdog with `esp_task_wdt_init()` (with panic set to `true`) help?
As I said, I can't reproduce the issue to experiment, so asking in case anyone might have faced something similar.
esp_restart() doesn't clear wifi AP data cache (?)
Who is online
Users browsing this forum: Applebot, Qwantbot, YisouSpider and 3 guests