Uniot Core
0.8.1
Loading...
Searching...
No Matches
Captive Portal
Collaboration diagram for Captive Portal:

Namespaces

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

Detailed Description

This file provides a complete captive portal implementation for WiFi device configuration. The captive portal combines DNS redirection, HTTP server, WebSocket communication, and mDNS discovery to create a seamless configuration experience for end users.

Key features:

The implementation follows the IExecutor interface pattern, allowing it to be integrated into task-based scheduling systems for non-blocking operation.

Example usage:

IPAddress apIP(192, 168, 4, 1);
ConfigCaptivePortal portal(apIP, [](AsyncWebSocket* server,
AsyncWebSocketClient* client,
AwsEventType type, void* arg,
uint8_t* data, size_t len) {
// Handle WebSocket events
});
if (portal.start()) {
// Portal started successfully
while (running) {
portal.execute(0); // Process requests
}
}