Reading serial data in realtime in Python
You can use inWaiting() to get the amount of bytes available at the input queue. Then you can use read() to read the bytes, something like that: While True: bytesToRead = ser.inWaiting() ser.read(bytesToRead) Why not to use readline() at this case from Docs: Read a line which is terminated with end-of-line (eol) character (\n by … Read more