Hi.
I'm looking for a small simple httpd server that will work on both MicroPython (when I run it on my ESP-32 boards), and also on my desktop (macOS) CPython.
I've tried all of the ones I could find with searches: tinyweb, picoweb, MicroWebSrv, MicroWebSrv2. All of them require things like uasyncio or ulogging, and aren't compatible with Real™ Python.
Does this exist?
I tried rolling my own very very simple socket code to handle this, and it technically works, but I'm hoping something more robust (and ideally multi-threaded so the sockets don't block so badly) already exists.
Even a minimalist port of http.server that works on both platforms would be helpful.
Thanks!
HTTP Server that will work on both MicroPython (ESP32) and Unix (Darwin/CPython)?
-
- Posts: 2
- Joined: Sat Apr 16, 2022 11:30 am
- Location: https://mini-militia.com/mini-militia-apk-tipstricks/
HTTP Server that will work on both MicroPython (ESP32) and Unix (Darwin/CPython)?
Last edited by christkenddy on Wed Apr 20, 2022 7:04 am, edited 1 time in total.
-
- Posts: 59
- Joined: Mon Mar 29, 2021 1:36 am
- Location: Brisbane Australia
-
- Posts: 2
- Joined: Sat Apr 16, 2022 11:30 am
- Location: https://mini-militia.com/mini-militia-apk-tipstricks/
Re: HTTP Server that will work on both MicroPython (ESP32) and Unix (Darwin/CPython)?
Thanks for the reply... I'll be come back soon.