From 3b46af1101212c2106cd04081edb5a8789ae3c38 Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:27:32 -0500 Subject: [PATCH] Make IP clickable via serial monitor --- wled00/wled.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wled00/wled.cpp b/wled00/wled.cpp index 08f5171d01..17efdceb73 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -1352,9 +1352,19 @@ void WLED::handleConnection() initAP(); } } else if (!interfacesInited) { //newly connected - DEBUG_PRINTLN(""); - USER_PRINT(F("Connected! IP address: ")); + USER_PRINTLN(""); + USER_PRINT(F("Connected! IP address: http://")); USER_PRINTLN(Network.localIP()); + //if (Network.isEthernet()) { + // #if ESP32 + // USER_PRINT(ETH.localIP()); + // USER_PRINTLN(" via Ethernet"); + // #endif + //} else { + // USER_PRINT(Network.localIP()); + // USER_PRINTLN(" via WiFi"); + //} + if (improvActive) { if (improvError == 3) sendImprovStateResponse(0x00, true); sendImprovStateResponse(0x04);