uasyncio web server example #9628
DavesCodeMusings
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As a way to learn more about using uasyncio, I created a simple "echo back" web server example as a gist
Basically, whatever gets sent in the HTTP request from a browser or from
curl
gets sent back as a reply. Obviously, you'll need the microcontroller connected to your network for it to work, but otherwise just copy the gist and run it.Example output (from curl):
I created this using MicroPython 1.19.1 on an ESP8266. Hopefully this will be useful to others wanting to get started with uasyncio. And if you see any glaring error in the gist, please let me know and I'll update it.
Beta Was this translation helpful? Give feedback.
All reactions