Skip to content

Commit

Permalink
ESP8266WiFiMulti - get number of APs in the list (#9082)
Browse files Browse the repository at this point in the history
When having some more complex setups it might be helpful to know the number of APs already added to the list.
  • Loading branch information
holgerlembke authored Mar 17, 2024
1 parent 1248d38 commit dc9abed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/ESP8266WiFiMulti.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc9abed

Please sign in to comment.