File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ void APSettingsService::manageAP() {
32
32
void APSettingsService::startAP () {
33
33
Serial.println (" Starting software access point" );
34
34
WiFi.softAP (_ssid.c_str (), _password.c_str ());
35
-
36
35
if (!_dnsServer) {
37
36
IPAddress apIp = WiFi.softAPIP ();
38
37
Serial.print (" Starting captive portal on " );
@@ -81,4 +80,7 @@ void APSettingsService::writeToJsonObject(JsonObject& root) {
81
80
82
81
void APSettingsService::onConfigUpdated () {
83
82
_lastManaged = millis () - MANAGE_NETWORK_DELAY;
83
+
84
+ // stop softAP - forces reconfiguration in loop()
85
+ stopAP ();
84
86
}
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class WiFiSettingsService : public SettingsService {
21
21
void readFromJsonObject (JsonObject& root);
22
22
void writeToJsonObject (JsonObject& root);
23
23
void onConfigUpdated ();
24
-
25
24
void reconfigureWiFiConnection ();
26
25
27
26
private:
You can’t perform that action at this time.
0 commit comments