Jan-25-2022, 04:22 PM
I don't know what happens when you repeat this over and over on an already opened serial port.
ser = serial.Serial(port, baudrate)Does this close the already open connection? If so, that would flush anything remaining in the read buffer. I would open the port once and read many times.