Skip to content

Arduino sketch showcases how to create a captive portal with user input form on ESP32

Notifications You must be signed in to change notification settings

alexkychen/ESP32-CaptivePortal-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge Static Badge Static Badge Static Badge

ESP32-CaptivePortal-Demo

Arduino sketch showcases the use of DNSServer and ESPAsyncWebServer libraries to implement a captive portal, which is an index.html file stored in ESP32 flash memory via LittleFS library. The example portal includes a form which allows users to enter data which then are received by ESP32.

Sketch and file upload

  1. Use Arduino IDE to open ESP32-CaptivePortal.ino file.
  2. In Arduino IDE, under Tools tab select ESP32 Sketch Data Upload. It should show a pop-up and then select LittleFS to upload files in the data folder to ESP32 filesystem.
  3. Compile and upload .ino sketch to ESP32 in a regular way.

Screenshots

captive_portal_screenshot

serial_monitor_screenshot

The sketch was modified based on the original captival portal example from the ESPAsyncWebServer library.

About

Arduino sketch showcases how to create a captive portal with user input form on ESP32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published