Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 1.05 KB

README.md

File metadata and controls

6 lines (4 loc) · 1.05 KB

ESP32-Captive-Portal

Converts the ESP32 into a captive portal. It uses ESPAsyncWebServer library to serve the files and DNSServer to redirect all requests. In order for the captive portal to work on some devices, I have to use non local IP address like 172.x.x.x for WiFi.softAPConfig();

The captive portal webpage is flashed using this tool but Platformio already included this tool see this. The files are accessed and served using SPIFFS via request->send(SPIFFS, "/index.html", "text/html");. I kept the flash usage under 1.5MB but yours may vary. If you changed your partition sizes, re-upload the files again.

Once the user accepted the "Sign-in" the user will be redirected to the Captive Portal. The included example plays "Never Gonna Give You Up" if the user clicks the "Click to Start Browsing" button on the portal.