Comments (3)
Thanks for your prompt reply!
I already "fixed" this by adding try/except to the readline call, but your suggestion to add timeouts seems to work too so I now reverted back to unmodified uasyncio. :)
I'm using Raspberry Pi Pico, sorry for not mentioning it in the first place.
I'll close this issue. I'm sure you are right that if there's anything to fix it's in micropython's side.
from micropython-async.
Sorry, I just realized line 185 is the readline(), not decode().
So perhaps need to move readline inside of "try"?
from micropython-async.
I think this is what is happening. The UART is timing out, returning None
. This is crashing uasyncio
here.
You haven't said what platform you're using but one option is to increase or disable the timeouts. These are specified as UART constructor args timeout
and timeout_char
. Values are in ms. Some platforms accept -1 to disable timeouts. Otherwise make them longer than the interval between GPS messages.
I have raised this issue. I'm not sure if it qualifies as a uasyncio
bug.
from micropython-async.
Related Issues (20)
- Pushbutton double and long press events HOT 3
- as_GPS problem HOT 5
- ThreadSafeQueue import error HOT 1
- Asyncio and sending serial data to SIM7600 (SMS) HOT 2
- __init__.py: import of Encoder fails. HOT 2
- Queue task_done/join enhancement HOT 3
- `uasyncio` is now renamed to `asyncio` in latest HOT 2
- coroutine not recognized HOT 1
- Feedback related to Quadrature Encoder HOT 1
- Where is ESwitch? HOT 2
- Course/compass direction - wild fluxuations. HOT 2
- Pushbutton class buggy ? HOT 5
- Feature request - WaitAny accepts task HOT 3
- question? HOT 2
- queue.py: Tuples are not read back correctly HOT 2
- Import uasyncio HOT 2
- Question about sharing data beween async and non ansync tasks HOT 7
- Detected simultaneous button presses with SwArray HOT 2
- apologies for using this channel. Would you be available for a short consultation gig?
- Fix author notes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-async.