Mar-12-2023, 06:46 PM
(This post was last modified: Mar-12-2023, 06:46 PM by deanhystad.)
I would expect 0 bytes in the input buffer. The buffer should be empty immediately after a write and after a read.
There should be no sleep(). Use ser.read() or ser.read_until() with a timeout, and it will wait for the data. I don't know if readline() works or not. It is not a pyserial call.
11 + CR + LF = 13
There should be no sleep(). Use ser.read() or ser.read_until() with a timeout, and it will wait for the data. I don't know if readline() works or not. It is not a pyserial call.
11 + CR + LF = 13