try connecting again after some time

This commit is contained in:
Morgan Allen 2018-09-21 22:35:54 -07:00
parent f58c4d63c4
commit 920e016fdc
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
../../../../esp32-wifi-manager/
../../../

View File

@ -77,6 +77,10 @@ void loop(void *p) {
ESP_LOGI(TAG, "Got connection!");
} else if(ev_bits & WIFI_IDLE) {
ESP_LOGI(TAG, "WiFi idle.");
vTaskDelay(10000 / portTICK_PERIOD_MS);
ESP_LOGI(TAG, "Attempting reconnect");
}
vTaskDelay(10000 / portTICK_PERIOD_MS);