mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 04:36:38 +00:00
Fix 255.255.255.255 IP error
This commit is contained in:
parent
17550d7b66
commit
9f71460a65
@ -362,7 +362,7 @@ static void wifiReconnect(void)
|
|||||||
// https://github.com/espressif/arduino-esp32/issues/3438#issuecomment-721428310
|
// https://github.com/espressif/arduino-esp32/issues/3438#issuecomment-721428310
|
||||||
WiFi.disconnect(true);
|
WiFi.disconnect(true);
|
||||||
WiFi.begin(wifiSsid, wifiPassword);
|
WiFi.begin(wifiSsid, wifiPassword);
|
||||||
WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE);
|
// WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE); // causes 255.255.255.255 IP errors
|
||||||
WiFi.setHostname(haspDevice.get_hostname());
|
WiFi.setHostname(haspDevice.get_hostname());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user