cleanup logging
This commit is contained in:
parent
ffb505e516
commit
cdaa2e9132
1 changed files with 2 additions and 5 deletions
|
@ -146,8 +146,6 @@ void wifi_manager_connect() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ESP_LOGI(TAG, "connecting to AP %d of %d", ap_store.last + 1, ap_store.count);
|
|
||||||
|
|
||||||
memcpy((char *)&wifi_config.sta.ssid, ap_store.aps[ap_store.last].ssid, strlen(ap_store.aps[ap_store.last].ssid) + 1);
|
memcpy((char *)&wifi_config.sta.ssid, ap_store.aps[ap_store.last].ssid, strlen(ap_store.aps[ap_store.last].ssid) + 1);
|
||||||
memcpy((char *)&wifi_config.sta.password, ap_store.aps[ap_store.last].password, strlen(ap_store.aps[ap_store.last].password) + 1);
|
memcpy((char *)&wifi_config.sta.password, ap_store.aps[ap_store.last].password, strlen(ap_store.aps[ap_store.last].password) + 1);
|
||||||
|
|
||||||
|
@ -155,8 +153,8 @@ void wifi_manager_connect() {
|
||||||
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
|
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
|
||||||
|
|
||||||
ESP_LOGI(TAG, "wifi_init_sta finished.");
|
ESP_LOGI(TAG, "wifi_init_sta finished.");
|
||||||
ESP_LOGI(TAG, "connect to ap SSID:%s password:%s",
|
ESP_LOGI(TAG, "connect to ap SSID:%s",
|
||||||
wifi_config.sta.ssid, wifi_config.sta.password);
|
wifi_config.sta.ssid);
|
||||||
|
|
||||||
ESP_ERROR_CHECK(esp_wifi_connect());
|
ESP_ERROR_CHECK(esp_wifi_connect());
|
||||||
};
|
};
|
||||||
|
@ -168,7 +166,6 @@ void wifi_manager_main_loop() {
|
||||||
while(true) {
|
while(true) {
|
||||||
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
|
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
|
||||||
|
|
||||||
ESP_LOGI(TAG, "ev_bits: 0x%02x", ev_bits);
|
|
||||||
if(ev_bits & AP_AVAILABLE &&
|
if(ev_bits & AP_AVAILABLE &&
|
||||||
((ev_bits & (WIFI_SCANNING|WIFI_CONNECTED|WIFI_CONNECTING)) == 0)
|
((ev_bits & (WIFI_SCANNING|WIFI_CONNECTED|WIFI_CONNECTING)) == 0)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue