1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

IP PORT messages on LCD line 4

This commit is contained in:
Ash-4 2024-02-05 16:05:43 -06:00
parent 6253267b5d
commit 78178c2c45
3 changed files with 3 additions and 7 deletions

View File

@ -188,8 +188,7 @@ bool EthernetInterface::checkLink() {
LCD(4,F("%d.%d.%d.%d"), ip[0], ip[1], ip[2], ip[3]);
LCD(5,F("Port:%d Eth"), IP_PORT);
} else {
LCD(4,F("Ethernet UP"));
LCD(5,F("%d.%d.%d.%d:%d"), ip[0], ip[1], ip[2], ip[3], IP_PORT);
LCD(4,F("%d.%d.%d.%d:%d"), ip[0], ip[1], ip[2], ip[3], IP_PORT);
}
mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME); // hostname
mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP);
@ -213,7 +212,6 @@ bool EthernetInterface::checkLink() {
delete server;
server = nullptr;
LCD(4,F("Ethernet DOWN"));
LCD(5,F(" "));
}
}
return false;

View File

@ -186,8 +186,7 @@ bool WifiESP::setup(const char *SSid,
LCD(4, F("IP: %s"), WiFi.localIP().toString().c_str());
LCD(5,F("PORT=%d WiFi"), IP_PORT);
} else {
LCD(4, F("WiFi UP"));
LCD(5, F("%s:%d"), WiFi.localIP().toString().c_str(), IP_PORT);
LCD(4, F("%s:%d"), WiFi.localIP().toString().c_str(), IP_PORT);
}
wifiUp = true;
} else {

View File

@ -370,8 +370,7 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password,
LCD(4,F("%s"),ipString); // There is not enough room on some LCDs to put a title to this
LCD(5,F("PORT=%d WiFi"),port);
} else {
LCD(4,F("WiFi UP"));
LCD(5,F("%s:%d"), ipString, port);
LCD(4,F("%s:%d"), ipString, port);
}
}
if (!checkForOK(1000, true, false)) return WIFI_DISCONNECTED;