From 500fe2f7171de2eb339c386746b01382999cac75 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Oct 2021 00:40:35 +0200 Subject: [PATCH] more diag messages --- WifiESP32.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index cc3d335..56765ba 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -99,6 +99,8 @@ bool WifiESP::setup(const char *SSid, if (WiFi.status() == WL_CONNECTED) { DIAG(F("Wifi STA IP %s"),WiFi.localIP().toString().c_str()); wifiUp = true; + } else { + DIAG(F("Could not connect to Wifi SSID %s"),SSid); } } if (!haveSSID) { @@ -120,12 +122,14 @@ bool WifiESP::setup(const char *SSid, DIAG(F("Wifi AP IP %s"),WiFi.softAPIP().toString().c_str()); wifiUp = true; APmode = true; + } else { + DIAG(F("Could not set up AP with Wifi SSID %s"),strSSID.c_str()); } } if (!wifiUp) { - DIAG(F("Wifi all fail")); + DIAG(F("Wifi setup all fail (STA and AP mode)")); // no idea to go on return false; }