Replies: 1 comment
-
No, the What you need to do is to use an asynchronous HTTP client instead of urequests, so that you don't block while the request is processed. Try with https://github.com/micropython/micropython-lib/tree/master/python-ecosys/aiohttp. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using Microdot as an async server on Pico W. It's rock solid and works great.
Likely my poor understanding, but I want to periodically (every 24hrs) send an http request from the same pico, to a 3rd party website to request some data. I am doing this with a blocking call with urequests, which I'm ok with given the infrequent nature of the calls.
This is obviously not too difficult & works fine when not hosting the server, but when I try to do this while running the microdot server, I run into problems - either the server stops or I cannot establish a connection to make the request.
Is there a way to do this with Microdot? Can I create and send a request via the request class somehow? Do I have a fundamental gap in my knowledge on why this is not possible?!
Any leads or suggestions much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions