Uniot Core
0.8.1
Loading...
Searching...
No Matches
WiFi Network Scanning
Collaboration diagram for WiFi Network Scanning:

Namespaces

namespace  uniot
 Contains all classes and functions related to the Uniot Core.
 

Detailed Description

This file provides platform-specific implementations for WiFi network scanning on ESP8266 and ESP32 microcontrollers. It abstracts the differences between the two platforms while providing a consistent interface for asynchronous network discovery.

The implementations handle:

Example usage:

#if defined(ESP32)
ESP32WifiScan scanner;
scheduler.push(scanner.getTask());
#elif defined(ESP8266)
ESP8266WifiScan scanner;
#endif
scanner.scanNetworksAsync([](int networkCount) {
for (int i = 0; i < networkCount; i++) {
Serial.println(WiFi.SSID(i));
}
});