Skip to content
Discussion options

You must be logged in to vote

Yes, that's right. Because the "accept" function will block, the rest of your code won't run.

The best way to do what you want is with asyncio, and have separate tasks for the OLED, sensors, and web server.

I recommend using a HTTP server library that takes care of all this for you -- e.g. https://github.com/miguelgrinberg/microdot

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jimmo
Comment options

@adysanro
Comment options

Answer selected by adysanro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants