update wifi manager

This commit is contained in:
technyon
2023-01-26 18:38:10 +01:00
parent 8ad0aa517d
commit a62017883a
19 changed files with 1113 additions and 741 deletions

View File

@@ -93,9 +93,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();
}
});
}
}