try connecting again after some time
This commit is contained in:
parent
f58c4d63c4
commit
920e016fdc
2 changed files with 5 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
../../../../esp32-wifi-manager/
|
../../../
|
|
@ -77,6 +77,10 @@ void loop(void *p) {
|
||||||
ESP_LOGI(TAG, "Got connection!");
|
ESP_LOGI(TAG, "Got connection!");
|
||||||
} else if(ev_bits & WIFI_IDLE) {
|
} else if(ev_bits & WIFI_IDLE) {
|
||||||
ESP_LOGI(TAG, "WiFi idle.");
|
ESP_LOGI(TAG, "WiFi idle.");
|
||||||
|
|
||||||
|
vTaskDelay(10000 / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
|
ESP_LOGI(TAG, "Attempting reconnect");
|
||||||
}
|
}
|
||||||
|
|
||||||
vTaskDelay(10000 / portTICK_PERIOD_MS);
|
vTaskDelay(10000 / portTICK_PERIOD_MS);
|
||||||
|
|
Loading…
Reference in a new issue