1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

improve Wifi connect messages

This commit is contained in:
Harald Barth 2023-03-20 10:11:14 +01:00
parent 2fb485847f
commit 21c99c8694
2 changed files with 8 additions and 7 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202303200902Z" #define GITHUB_SHA "devel-202303200910Z"

View File

@ -125,17 +125,18 @@ wifiSerialState WifiInterface::setup(Stream & setupStream, const FSH* SSid, con
wifiState = setup2( SSid, password, hostname, port, channel); wifiState = setup2( SSid, password, hostname, port, channel);
if (wifiState == WIFI_NOAT) { if (wifiState == WIFI_NOAT) {
DIAG(F("++ Wifi Setup NO AT ++")); LCD(4, F("WiFi no AT chip"));
return wifiState; return wifiState;
} }
if (wifiState == WIFI_CONNECTED) { if (wifiState == WIFI_CONNECTED) {
StringFormatter::send(wifiStream, F("ATE0\r\n")); // turn off the echo StringFormatter::send(wifiStream, F("ATE0\r\n")); // turn off the echo
checkForOK(200, true); checkForOK(200, true);
DIAG(F("WiFi CONNECTED"));
// LCD already shows IP
} else {
LCD(4,F("WiFi DISCON."));
} }
DIAG(F("++ Wifi Setup %S ++"), wifiState == WIFI_CONNECTED ? F("CONNECTED") : F("DISCONNECTED"));
return wifiState; return wifiState;
} }