Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 994 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 994 Bytes

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