![]() |
|
Uniot Core
|
| 0.8.1 |
WiFi network scanner implementation for ESP32. More...
#include <WiFiNetworkScan.h>
Public Member Functions | |
| ESP32WifiScan () | |
| Construct a new ESP32 WiFi scanner. | |
| TaskScheduler::TaskPtr | getTask () |
| Get the scan completion monitoring task. | |
| void | scanNetworksAsync (std::function< void(int)> onComplete, bool showHidden=false) |
| Start asynchronous WiFi network scan. | |
Static Public Member Functions | |
| static int | isSecured (int encryptionType) |
| Check if a network uses encryption. | |
WiFi network scanner implementation for ESP32.
This class provides WiFi network scanning functionality specifically for ESP32 microcontrollers. Since ESP32's WiFi library doesn't provide native callback support for scan completion, this implementation uses a scheduled task to poll for scan completion and trigger the callback.
|
inline |
Construct a new ESP32 WiFi scanner.
Initializes the scanner and creates a scheduled task for monitoring scan completion status.
|
inline |
Get the scan completion monitoring task.
| TaskScheduler::TaskPtr | Pointer to the task that monitors scan completion |
|
inlinestatic |
Check if a network uses encryption.
| encryptionType | The encryption type returned by WiFi scan |
| int | 1 if network is secured, 0 if open |
|
inline |
Start asynchronous WiFi network scan.
| onComplete | Callback function called when scan completes with network count |
| showHidden | Whether to include hidden networks in scan results |