From dc9abed8b91de32e36e61d11e4ed829e5ecf5556 Mon Sep 17 00:00:00 2001 From: Holger Lembke Date: Sun, 17 Mar 2024 22:04:44 +0100 Subject: [PATCH] ESP8266WiFiMulti - get number of APs in the list (#9082) When having some more complex setups it might be helpful to know the number of APs already added to the list. --- libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h b/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h index fab5829afd..3c77df02d4 100644 --- a/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h +++ b/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h @@ -69,7 +69,7 @@ class ESP8266WiFiMulti wl_status_t run(uint32_t connectTimeoutMs=WIFI_CONNECT_TIMEOUT_MS); void cleanAPlist(); - + int count() { return _APlist.size(); } private: WifiAPlist _APlist; bool _firstRun;