Giter Club home page Giter Club logo

Comments (3)

Zuikkis avatar Zuikkis commented on August 25, 2024 1

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.

Zuikkis avatar Zuikkis commented on August 25, 2024

Sorry, I just realized line 185 is the readline(), not decode().

So perhaps need to move readline inside of "try"?

from micropython-async.

peterhinch avatar peterhinch commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.