From 197a02c45751a3d5827f7ca09d3bb3cbd110b5a2 Mon Sep 17 00:00:00 2001 From: Emil Muratov Date: Sat, 14 Dec 2024 12:39:01 +0900 Subject: [PATCH] show SSID/IP in console log on WiFi client connection --- src/network/netmgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/netmgr.cpp b/src/network/netmgr.cpp index 9ec2b41..fec6762 100644 --- a/src/network/netmgr.cpp +++ b/src/network/netmgr.cpp @@ -57,7 +57,8 @@ void NetworkManager::wifi_event(WiFiEvent_t ev) { } break; case SYSTEM_EVENT_STA_GOT_IP: - ESP_LOGI(LOG_TAG, "Connection succeeded"); + ESP_LOGI(LOG_TAG, "Connection succeeded. SSID:'%s', IP: %s", network_name(), current_ip().c_str()); + has_ip = true; if(initial_connection_ongoing) { initial_connection_succeeded = true;