1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

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.
This commit is contained in:
Holger Lembke 2024-03-17 22:04:44 +01:00 committed by GitHub
parent 1248d3874e
commit dc9abed8b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ public:
wl_status_t run(uint32_t connectTimeoutMs=WIFI_CONNECT_TIMEOUT_MS); wl_status_t run(uint32_t connectTimeoutMs=WIFI_CONNECT_TIMEOUT_MS);
void cleanAPlist(); void cleanAPlist();
int count() { return _APlist.size(); }
private: private:
WifiAPlist _APlist; WifiAPlist _APlist;
bool _firstRun; bool _firstRun;