Minore FW Tweeks

This commit is contained in:
JonatanRek
2019-11-30 18:35:45 +01:00
parent 563999e92d
commit 3bca87a4b3
2 changed files with 45 additions and 33 deletions

View File

@@ -133,7 +133,8 @@ void setStaticIp(String IpAddress, String subnet, String gateway){
if (
staticIpAddress.fromString(ipAddress) &&
subnetIpAddress.fromString(subnet) &&
gatewayIpAddress.fromString(gateway)
gatewayIpAddress.fromString(gateway) &&
WiFi.localIP() != staticIpAddress
) {
WiFi.config(staticIpAddress, subnetIpAddress, gatewayIpAddress);
Serial.print("STATIC IP address:\t");