I have a fixed message protocol to work with for a COM device. How do I
specifically declare that I do not have a termination character when I write to the serial port?
If I declare that I do not have any termination character from the serial port, is it necessary to specify that in the Serial.readline()
as well?
import serial
ser = serial.Serial(
port='COM4',
baudrate=115200,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=None,
xonxoff=False,
rtscts=False,
write_timeout=None,
dsrdtr=False,
inter_byte_timeout=None,
exclusive=None)