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

Fix SSID and Pass not being saved after configPortal #104

Merged
merged 2 commits into from
Jan 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
},
"frameworks": "arduino",
"platforms": ["espressif8266", "espressif32"],
"version": "0.30"
"version": "0.31"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP Async WiFi Manager
version=0.30
version=0.31
author=alanswx
maintainer=alanswx
sentence=ESP8266 and ESP32 Async WiFi Connection manager with fallback web configuration portal
Expand Down
2 changes: 2 additions & 0 deletions src/ESPAsyncWiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,10 @@ boolean AsyncWiFiManager::startConfigPortal(char const *apName, char const *apPa
DEBUG_WM(F("Connecting to new AP"));

// using user-provided _ssid, _pass in place of system-stored ssid and pass
WiFi.persistent(true);
if (_tryConnectDuringConfigPortal and connectWifi(_ssid, _pass) == WL_CONNECTED)
{
WiFi.persistent(false);
// connected
WiFi.mode(WIFI_STA);
// notify that configuration has changed and any optional parameters should be saved
Expand Down