mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 01:10:20 +01:00
Wifi connection is only established when IP is set and the stack reports connected
This commit is contained in:
@@ -484,7 +484,7 @@ String NetworkSettingsClass::getHostname()
|
||||
|
||||
bool NetworkSettingsClass::isConnected() const
|
||||
{
|
||||
return WiFi.localIP()[0] != 0 || ETH.localIP()[0] != 0;
|
||||
return (WiFi.localIP()[0] != 0 && WiFi.isConnected() ) || ETH.localIP()[0] != 0;
|
||||
}
|
||||
|
||||
network_mode NetworkSettingsClass::NetworkMode() const
|
||||
|
||||
Reference in New Issue
Block a user