main/task_wifi.c

changeset 87
47253f294a9f
parent 71
7a4446a77d09
child 88
7f02dbee58d0
--- a/main/task_wifi.c	Sun Jun 07 22:30:07 2020 +0200
+++ b/main/task_wifi.c	Wed Jun 10 09:43:51 2020 +0200
@@ -134,7 +134,7 @@
 	sz = sizeof(task_wifi_ConfigSTA->sta.password);
 	memcpy(task_wifi_ConfigSTA->sta.password, wifiStation.Password, sz);
 
-	ESP_LOGI(TAG, "FetchStaConfig: last connected to ssid: %s", task_wifi_ConfigSTA->sta.ssid);
+	ESP_LOGD(TAG, "FetchStaConfig: last connected to ssid: %s", task_wifi_ConfigSTA->sta.ssid);
 	return task_wifi_ConfigSTA->sta.ssid[0] != '\0';
     }
 
@@ -266,7 +266,6 @@
                     ESP_LOGE(TAG, "wifi_event_handler() lock error WIFI_EVENT_AP_STACONNECTED");
                 }
 		wifi_event_ap_staconnected_t* staconnected = (wifi_event_ap_staconnected_t*) event_data;
-//		const system_event_ap_staconnected_t *staconnected = &event->event_info.sta_connected;
             	ESP_LOGI(TAG, "Event AP connected, mac:" MACSTR ", aid:%d, conns:%d",
                        MAC2STR(staconnected->mac), staconnected->aid, wifi_state->AP_clients);
 		break;
@@ -282,7 +281,6 @@
                     ESP_LOGE(TAG, "wifi_event_handler() lock error WIFI_EVENT_AP_STADISCONNECTED");
                 }
 		wifi_event_ap_stadisconnected_t* stadisconnected = (wifi_event_ap_stadisconnected_t*) event_data;
-//		const system_event_ap_stadisconnected_t *stadisconnected = &event->event_info.sta_disconnected;
             	ESP_LOGI(TAG, "Event AP disconnected, mac:" MACSTR ", aid:%d, conns:%d",
                        MAC2STR(stadisconnected->mac), stadisconnected->aid, wifi_state->AP_clients);
 		break;
@@ -349,7 +347,7 @@
                 break;
 
 	case IP_EVENT_AP_STAIPASSIGNED:
-		ESP_LOGI(TAG, "IP_EVENT_AP_STAIPASSIGNED");
+		ESP_LOGD(TAG, "IP_EVENT_AP_STAIPASSIGNED");
 		break;
 
         default:

mercurial