Skip to content

Commit

Permalink
Make IP clickable via serial monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
troyhacks authored and softhack007 committed Nov 23, 2024
1 parent d2a7b9e commit 3b46af1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions wled00/wled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 3b46af1

@ewowi
Copy link

@ewowi ewowi commented on 3b46af1 Nov 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice !

Please sign in to comment.