removed uart.readall()

This commit is contained in:
gijsio
2020-10-19 12:55:10 +02:00
committed by peter-pycom
parent b76fd990e8
commit 0a9eb069ae

View File

@@ -25,7 +25,6 @@ A UART object acts like a stream object therefore reading and writing is done us
```python
uart.read(10) # read 10 characters, returns a bytes object
uart.readall() # read all available characters
uart.readline() # read a line
uart.readinto(buf) # read and store into the given buffer
uart.write('abc') # write the 3 characters
@@ -105,15 +104,10 @@ Return the number of characters available for reading.
### uart.read([nbytes])
Read characters. If `nbytes` is specified then read at most that many bytes.
Read characters. If `nbytes` is specified then read at most that many bytes. If not specified, it will read all bytes in the buffer.
Return value: a bytes object containing the bytes read in. Returns `None` on timeout.
### uart.readall()
Read as much data as possible.
Return value: a bytes object or `None` on timeout.
### uart.readinto(buf, [nbytes])