WiFi reconnect improvement

This commit is contained in:
Djuri 2023-11-20 18:59:33 +01:00
parent 43b0e9718d
commit efed8bee5c
5 changed files with 29 additions and 15 deletions

View file

@ -26,6 +26,10 @@ extern "C" void app_main()
if (eventSourceTaskHandle != NULL)
xTaskNotifyGive(eventSourceTaskHandle);
if (!WiFi.isConnected()) {
WiFi.begin();
}
vTaskDelay(pdMS_TO_TICKS(5000));
}
}