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

esp32: frozen loop() and kicked out of the WiFi connection at Configure new AP #615

Open
Evgen2 opened this issue Nov 17, 2023 · 0 comments

Comments

@Evgen2
Copy link

Evgen2 commented Nov 17, 2023

This is very similar to #593
Again I take example HelloWorld\HelloWorld.ino on Platformio with platformio.ini, go to "Configure new AP" menu item and kicked out of the WiFi connection as you can see at short video

Moreover, it looks like total frozen, so that no debug output from loop() I can see for about 20-30 seconds after kicked out, as well as no access point I can see on my smartfone for this frozen time period.

And this kicked out in "Configure new AP" is not stable and can happen on second or tenth time.

I can find that this issue happen after String AutoConnectCore::_token_LIST_SSID(PageArgument& args) function return

But there is one good news: if add one more true parameter to WiFi.scanNetworks call, than magically the problem with freezing and kicked out is solved

// _scanCount = WiFi.scanNetworks(false, true);
_scanCount = WiFi.scanNetworks(false, true, true);

scanNetworks defined as
int16_t scanNetworks(bool async = false, bool show_hidden = false, bool passive = false, uint32_t max_ms_per_chan = 300, uint8_t channel = 0);

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

1 participant