Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.38 KB

esp32_python_web

As the name says, it is about simple, stable web server on esp32 using micropython. This is a base for most other projects.
Unfortunately it required a lot of testing, to go from the basic examples to a stable working web server.
Now it easily survives days, multiple request from multiple clients, etc.

Testing included:
= timeout errors
= network errors
= iphone killing sockets (yes...)
= sending errors and more

This version includes:
= web server running in thread
= signal led showing connected wifi and running system in thread
= interrupts for buttons
= some leds as PWM for lower intensity (I connected most of leds directly, without resistor)

Idea is:
= use this base for other projects such as: = sensors (different MQ sensors and temperature sensors)
mainly natural gas and carbon monooxide for gas heater safety
= mqtt connection
= bluetooth eq3 thermostats control
= bluetooth scanner for presence testing

Created and tested on
= micropython, esp32-idf4-20201114-unstable-v1.13-173-g61d1e4b01.bin
= esp32-wroom-32 (from AZ-Delivery)
= some leds and buttons
= sensors

Helpful projects
https://github.com/leech001/MQ9
https://github.com/kartun83/micropython-MQ

Page layout and basics from
https://randomnerdtutorials.com/esp32-esp8266-micropython-web-server/