HTTP Server that will work on both MicroPython (ESP32) and Unix (Darwin/CPython)?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
christkenddy
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)?

Post by christkenddy » Sat Apr 16, 2022 11:32 am

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!
Last edited by christkenddy on Wed Apr 20, 2022 7:04 am, edited 1 time in total.


christkenddy
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)?

Post by christkenddy » Mon Apr 18, 2022 12:55 pm

Thanks for the reply... :) I'll be come back soon.

Post Reply