Best option for responsive webserver? #12875
-
Does anyone have any recommendations for having a more robust or responsive webserver hosted by RPi Pico? I am currently using the tutorial style server that responds with a block of HTML code, and responds to a few requests. I think I can probably achieve this with what I have using some JavaScript to refresh the page every few seconds, but curious if anyone has any suggestions for something more powerful or eloquent? I don't know if Apache or Nginx would be overkill, since its really just one page, a handful of requests and values, maybe one form. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
look at microdot, especially microdot asyncio. |
Beta Was this translation helpful? Give feedback.
-
I am admittedly biased, but I use Thimble for all my MicroPython web serving needs. Mostly I've used it to add a REST API to my projects, but it can serve static pages as well. There's an examples folder on the GitHub site that shows how to do things. |
Beta Was this translation helpful? Give feedback.
-
Yes microdot is very usefull in async mode and have websocket so you can update your html page asking server via javascript.. Miguel have done a really fantastic work. Now we are waiting for ssl in async mode which would be done in micropython V1.22 and Miguel would implemented it. |
Beta Was this translation helpful? Give feedback.
-
I ended up using microdot, and I am pretty pleased with it so far, thanks for all the suggestions! |
Beta Was this translation helpful? Give feedback.
look at microdot, especially microdot asyncio.