|
FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
|
WiFi scanner helper class. More...
#include <netutils.h>
Public Member Functions | |
| void | cleanUp () |
| Frees the resources used to scan WiFi networks. | |
| int | count () |
| Returns the number of networks found (limited to the requested maximum). | |
| wifi_ap_record_t * | get (int index) |
| Returns information about the specified network. | |
| bool | scan (int maxItems=8, bool justCount=false) |
| Performs a WiFi scan. | |
Static Public Member Functions | |
| static char const * | authModeStr (wifi_auth_mode_t mode) |
| Returns a textual description of an authentication mode. | |
WiFi scanner helper class.
WiFiScanner scans for nearby WiFi networks.
Example:
fabgl::WiFiScanner scanner;
if (scanner.scan())
for (int i = 0; i < scanner.count(); ++i) {
auto item = scanner.get(i);
Term.printf("#%d %s %d dBm\r\n", i, item->ssid, item->rssi);
}
Definition at line 78 of file netutils.h.