From 0a9eb069ae5fe78fa9adce97020a6fc21b53d7db Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Mon, 19 Oct 2020 12:55:10 +0200 Subject: [PATCH] removed uart.readall() --- content/firmwareapi/pycom/machine/uart.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/content/firmwareapi/pycom/machine/uart.md b/content/firmwareapi/pycom/machine/uart.md index a9ecbae..b0d85f0 100644 --- a/content/firmwareapi/pycom/machine/uart.md +++ b/content/firmwareapi/pycom/machine/uart.md @@ -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])