tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
684 stars 222 forks source link

Reset occurs when previously connected wifi is no longer in range #160

Open jerry-synap opened 5 months ago

jerry-synap commented 5 months ago

Prerequisites

Description

Steps to Reproduce

The first time you run the application and add wifi credentials, the application connects and runs normally. Switch off the wifi the ESP is connected to. Reset the ESP32 The code will run and inside this method "wifi_manager_timer_retry_cb" it will run into a stack overflow. You cannot get it to restart the AP again if the previously connected WIFI is not in range. The only way is to erase the nvs and then the AP starts up again.

System Configuration

ESP_IDF 5.2.1 VSCode

Can you please point me in the direction on how to solve this? I have tried many things like checking if the XtimerStop is not null etc, adding delays