Closed
Description
Here are some breaking-change requests to make uart match CPython (pyserial)
- Change
timeout
arg to seconds rather than milliseconds - Require bytes only, don't allow strings (e.g. uart.write("hello") should fail, but uart.write(b'hello') is ok)
- dont let readinto() take a size/numbytes
-
UART.in_waiting
from PySerial. Added by UART enhancements #1186. -
UART.reset_input_buffer
from PySerial. Added by UART enhancements #1186.
also, any other functions/apis that vary from https://pyserial.readthedocs.io/en/latest/pyserial_api.html would be good to bring in line at the same time.