pyserial – How to read the last line sent from a serial device
Perhaps I’m misunderstanding your question, but as it’s a serial line, you’ll have to read everything sent from the Arduino sequentially – it’ll be buffered up in the Arduino until you read it. If you want to have a status display which shows the latest thing sent – use a thread which incorporates the code … Read more