Skip to content

Commit dc9abed

Browse files
authored
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.
1 parent 1248d38 commit dc9abed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ESP8266WiFiMulti
6969
wl_status_t run(uint32_t connectTimeoutMs=WIFI_CONNECT_TIMEOUT_MS);
7070

7171
void cleanAPlist();
72-
72+
int count() { return _APlist.size(); }
7373
private:
7474
WifiAPlist _APlist;
7575
bool _firstRun;

0 commit comments

Comments
 (0)