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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset occurs when previously connected wifi is no longer in range

jerry-synap opened this issue · comments

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of esp32-wifi-manager
  • [x ] I have searched open and closed issues to ensure it has not already been reported

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

  • Environment (Operating system, version and so on):
    Windows 11 / Ubuntu 20.04 LTS

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