Skip to content

Simple MicroPython web server for serving a website from a captive portal

License

Notifications You must be signed in to change notification settings

joewez/CaptiveWebServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Captive Web Server

Simple MicroPython web server for serving a website from a captive portal (Generally meant for an ESP8266 Device)

  • Copy the application file captive_http.py to the root of an ESP8266 device running a recent version of MicroPython
  • Create a directory on your file system called /wwwroot
  • Place the capture.html file along with the rest of your content including an index.html file
  • The script does not setup the AP (Type help() at the REPL prompt for information on this)
  • Simply import the script to run the server (or import it in your main.py)

>>> import wifi
>>> wifi.access_point('tester', 'password', dns=True)
>>> import captive_http()

DNS Server code culled from: https://github.com/amora-labs/micropython-captive-portal

About

Simple MicroPython web server for serving a website from a captive portal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published