implement fallback to wifi if W5500 hardware not present

This commit is contained in:
technyon
2023-01-01 17:09:26 +01:00
parent e202db236e
commit 6f58ebd382
9 changed files with 54 additions and 14 deletions

View File

@@ -126,10 +126,10 @@ bool WifiDevice::isConnected()
return WiFi.isConnected();
}
bool WifiDevice::reconnect()
ReconnectStatus WifiDevice::reconnect()
{
delay(3000);
return isConnected();
return isConnected() ? ReconnectStatus::Success : ReconnectStatus::Failure;
}
void WifiDevice::update()