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

more diag messages

This commit is contained in:
Harald Barth 2021-10-31 00:40:35 +02:00
parent 278f7618f4
commit 500fe2f717

View File

@ -99,6 +99,8 @@ bool WifiESP::setup(const char *SSid,
if (WiFi.status() == WL_CONNECTED) { if (WiFi.status() == WL_CONNECTED) {
DIAG(F("Wifi STA IP %s"),WiFi.localIP().toString().c_str()); DIAG(F("Wifi STA IP %s"),WiFi.localIP().toString().c_str());
wifiUp = true; wifiUp = true;
} else {
DIAG(F("Could not connect to Wifi SSID %s"),SSid);
} }
} }
if (!haveSSID) { if (!haveSSID) {
@ -120,12 +122,14 @@ bool WifiESP::setup(const char *SSid,
DIAG(F("Wifi AP IP %s"),WiFi.softAPIP().toString().c_str()); DIAG(F("Wifi AP IP %s"),WiFi.softAPIP().toString().c_str());
wifiUp = true; wifiUp = true;
APmode = true; APmode = true;
} else {
DIAG(F("Could not set up AP with Wifi SSID %s"),strSSID.c_str());
} }
} }
if (!wifiUp) { if (!wifiUp) {
DIAG(F("Wifi all fail")); DIAG(F("Wifi setup all fail (STA and AP mode)"));
// no idea to go on // no idea to go on
return false; return false;
} }