From d99d5f11ad4f2c3a4e31386018d39a90ef27788a Mon Sep 17 00:00:00 2001 From: Morgan Allen Date: Fri, 21 Sep 2018 22:34:04 -0700 Subject: [PATCH] on no, weve gone idle --- test/wm-test-project/main/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/wm-test-project/main/main.c b/test/wm-test-project/main/main.c index d9a7b11..cd413d8 100644 --- a/test/wm-test-project/main/main.c +++ b/test/wm-test-project/main/main.c @@ -74,10 +74,12 @@ void loop(void *p) { EventBits_t ev_bits = xEventGroupGetBits(wm_event_group); if(ev_bits & WIFI_CONNECTED) { - vTaskDelay(5000 / portTICK_PERIOD_MS); - ESP_LOGI(TAG, "Got connection!"); + } else if(ev_bits & WIFI_IDLE) { + ESP_LOGI(TAG, "WiFi idle."); } + + vTaskDelay(10000 / portTICK_PERIOD_MS); } }