Skip to content

hydronics2/esp8266-micropython-webserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Built micropython firmware including fadushin's webserver module UHTTPD into file.bin to flash to an ESP8266. So many js libraries around to make super fun user interfaces for your hardware. I included smoothie.js in the file WWW to try out...

Flash the compiled versionn onto your ESP8266 using esptool.py

esptool.py --port COM16 erase_flash

esptool.py --port COM16 --baud 460800 write_flash --flash_size=detect 0 C:/file.bin

Then use ampy or webrepl to move the www folder and files onto your board: https://learn.adafruit.com/micropython-basics-load-files-and-run-code/file-operations

ampy --port COM16 put C:/esp/www

Finally you can use a serial monitor, webrepl, puTTy or the like to start typing python commands....

>>> import uhttpd

>>> import uhttpd.file_handler

>>> server = uhttpd.Server([('/', uhttpd.file_handler.Handler('/www'))])

>>> server.run()

About

built micropython firmware including fadushin's webserver module UHTTPD into file.bin to flash to an ESP8266

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.5%
  • JavaScript 15.2%
  • CSS 13.2%
  • HTML 6.0%
  • Other 1.1%