How can I change the end-of-line (EOL, sometimes called TERMINATOR) character in current versions (>3.4) of PySerial? The short intro advises to use io.TextWrapper, but I have never used the io
module and the example given in the short intro is pretty far from my use-case. Is there a simpler way? Something like Matlab's
s = serial('COM3');
s.Terminator = 'CR';
s.open()
I just want to be able to do readline()
on a device that uses CR
to indicate a newline.