From 221eadca9e1d433bfb5e0aa42666a61e3c55a400 Mon Sep 17 00:00:00 2001 From: Seon Rozenblum Date: Mon, 18 Nov 2024 16:23:16 +1100 Subject: [PATCH] Revert "fix(wifi): fixes isconnected() to return true when it has ip addr (#10595)" This reverts commit e99f1fdc6d12e07324be6e956318496e6a0bfac3. --- libraries/WiFi/src/WiFiSTA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiSTA.cpp b/libraries/WiFi/src/WiFiSTA.cpp index 99c02a4b81d..1c1ce42c12f 100644 --- a/libraries/WiFi/src/WiFiSTA.cpp +++ b/libraries/WiFi/src/WiFiSTA.cpp @@ -215,7 +215,7 @@ bool WiFiSTAClass::bandwidth(wifi_bandwidth_t bandwidth) { * @return true if STA is connected to an AP */ bool WiFiSTAClass::isConnected() { - return STA.connected() && STA.hasIP(); + return STA.connected(); } /**