-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Update feature asyncwebserver and fix network scanning #1389
base: feature_asyncwebserver
Are you sure you want to change the base?
Update feature asyncwebserver and fix network scanning #1389
Conversation
…zapu#1344)" This reverts commit 9f6dcad.
so it has nothing to do with the html , and can have different encoding, we could also just use IDs but scan cannot change, or use bssid tzapu#1370
any webserver event handlers bound before the webserver new reset would cause memory access issues when triggered. Should remove all events on reset or make memory safe, not sure if this is the correct way to be reseting the webserver, but there were issues with the ports not releasing etc.
This will avoid support inquiries and add a log
// if true (default) then stop the config portal from autoConnect when wifi is saved void setDisableConfigPortal(boolean enable); Name will change
# Conflicts: # WiFiManager.cpp # WiFiManager.h # examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino
- _preloadwifiscan seems to help with pre-populating the network list, otherwise the first time accessing the page it is empty - _asyncScan needs to be true, otherwise it never does an async scan and never populates the network list - after changing _asyncScan to true, the hardcoded async=true and force=false in WiFiManager::WiFi_scanNetworks don't seem to be necessary anymore
I am rebuilding this branch, to make it mergable from master, without conflicts |
What particularly did you fix, there is a merge in this PR, or is that all it is? |
This branch wasn't working for me, I had the same issue described by @dronecz in issue #1121 . I started by merging master, but that didn't fix the issue. The change I made that fixed #1121 was to set _asyncScan to true and remove the hardcoded async=true from WiFiManager::WiFi_scanNetworks |
ok ill check that also, thanks |
I tested some more. On ESP8266 it's working with Auto, OnDemand, AutoNonBlocking, OnDemandNonBlocking, NonBlockingwParams. I also tested on ESP32 and for some reason it still does a SYNC Scan, I will debug further.
|
Yeah thats a known issue |
Lines 3698 to 3702 in 7bffda3
I see that |
YES |
Sorry, been distracted lately, and I didn't test it.. |
# Conflicts: # WiFiManager.cpp
Thanks! This branch now works for both ESP8266 and ESP32. |
Any plans on merging this? |
No description provided.