From 21c99c86944b9ff100ed89a78c922d529ee6d6d9 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Mon, 20 Mar 2023 10:11:14 +0100 Subject: [PATCH] improve Wifi connect messages --- GITHUB_SHA.h | 2 +- WifiInterface.cpp | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/GITHUB_SHA.h b/GITHUB_SHA.h index a35bfaa..ee808a7 100644 --- a/GITHUB_SHA.h +++ b/GITHUB_SHA.h @@ -1 +1 @@ -#define GITHUB_SHA "devel-202303200902Z" +#define GITHUB_SHA "devel-202303200910Z" diff --git a/WifiInterface.cpp b/WifiInterface.cpp index f69cc2f..21d474b 100644 --- a/WifiInterface.cpp +++ b/WifiInterface.cpp @@ -125,17 +125,18 @@ wifiSerialState WifiInterface::setup(Stream & setupStream, const FSH* SSid, con wifiState = setup2( SSid, password, hostname, port, channel); if (wifiState == WIFI_NOAT) { - DIAG(F("++ Wifi Setup NO AT ++")); - return wifiState; + LCD(4, F("WiFi no AT chip")); + return wifiState; } if (wifiState == WIFI_CONNECTED) { 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; }