urequests and timeout?
-
Hi everyone.
when loosing the wlan-connection (e.g. i turn of the router) my programm hangs at :
response = urequests.post(db, data=payload,timeout=timeout_sec)It is not raising a exception, the program hangs for ever at this line.
Any idea why?
How do you implement a simple post-command with a timeout option?
THX
MartinI am using this urequests.py :
https://github.com/micropython/micropyt ... equests.py -
-
Andreas is right Martin. I had to resort to a wdt to get around urequest hangs. I tried adding a timeout to urequests, putting urequests in a different thread & setting interrupt timers, nothing worked. Try import urequests; response=urequests.post(your_url, data=payload)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login