Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
jerry-synap opened this issue Jun 2, 2024 · 1 comment
Open
2 tasks done

Comments

@jerry-synap
Copy link

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

@yuanyanhui
Copy link

I also had this issue. Increasing FREERTOS_TIMER_TASK_STACK_DEPTH from 2048 to 4096 successfully started the ap mode, but ESP32 was still not stable. When you were trying to set the wifi credentials after opening the web page, it would reset again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants