mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 05:06:35 +01:00
removed uart.readall()
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user