on no, weve gone idle
This commit is contained in:
		
							parent
							
								
									7cf5ef49a5
								
							
						
					
					
						commit
						d99d5f11ad
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue