on no, weve gone idle

This commit is contained in:
Morgan Allen 2018-09-21 22:34:04 -07:00
parent 7cf5ef49a5
commit d99d5f11ad
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}