merge master

This commit is contained in:
technyon
2023-01-27 23:03:18 +01:00
23 changed files with 1134 additions and 772 deletions

View File

@@ -90,9 +90,12 @@ void WifiDevice::initialize()
if(_restartOnDisconnect)
{
_wm.setDisconnectedCallback([&]()
WiFi.onEvent([&](WiFiEvent_t event, WiFiEventInfo_t info)
{
onDisconnected();
if(event == ARDUINO_EVENT_WIFI_STA_DISCONNECTED)
{
onDisconnected();
}
});
}
}