WiFi reconnect improvement
This commit is contained in:
parent
43b0e9718d
commit
efed8bee5c
5 changed files with 29 additions and 15 deletions
|
@ -26,6 +26,10 @@ extern "C" void app_main()
|
|||
if (eventSourceTaskHandle != NULL)
|
||||
xTaskNotifyGive(eventSourceTaskHandle);
|
||||
|
||||
if (!WiFi.isConnected()) {
|
||||
WiFi.begin();
|
||||
}
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(5000));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue