AttributeError: 'UART' object has no attribute 'readall' since Firmware 1.19.0.b1
For a project I have to read out all data from a GPS sensor via UART.
Unfortunately the command "uart.readall()" which is also in the documentation (https://docs.pycom.io/firmwareapi/pycom/machine/uart/) does not work since firmware 1.19.0.b1. The error also occurs in the latest firmware 1.20.2.r0
I have now downgraded my Fipy to version 1.18.2.r7. In this firmware version the command "uart.readall()" works fine.
It would be great if in one of the next releases this bug would be fixed. (:
Information about my hardware:
Fipy with expansion board 3.1
@robert-hh Thanks it works! :)
robert-hh last edited by
@chrisrei readall() was just an alias to read(). So you can use uart.read() instead. uart.read() will read all characters which are present in the rx buffer at the time of calling, just like uart.readall() did.