mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-25 16:40:51 +00:00
Fixed static IP
This commit is contained in:
@@ -90,6 +90,7 @@ bool WiFiClientConnectionHandler::connect(NetworkConfig config, SystemConfig sys
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
WiFi.setAutoReconnect(true);
|
WiFi.setAutoReconnect(true);
|
||||||
|
this->config = config;
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
if(begin(config.ssid, config.psk)) {
|
if(begin(config.ssid, config.psk)) {
|
||||||
#else
|
#else
|
||||||
@@ -112,7 +113,6 @@ bool WiFiClientConnectionHandler::connect(NetworkConfig config, SystemConfig sys
|
|||||||
} else {
|
} else {
|
||||||
if (debugger->isActive(RemoteDebug::ERROR)) debugger->printf_P(PSTR("Unable to start WiFi\n"));
|
if (debugger->isActive(RemoteDebug::ERROR)) debugger->printf_P(PSTR("Unable to start WiFi\n"));
|
||||||
}
|
}
|
||||||
this->config = config;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user