def __init__(self, com_port): com_options = {'baudrate': 38400, 'parity': PARITY_EVEN} SerialDevice.__init__(self, com_port, com_options)
def lineReceived(self, line): line = line.rstrip('\r') SerialDevice.lineReceived(self, line)
def __init__(self, com_port): com_options = { 'baudrate': 38400, 'parity': PARITY_EVEN } SerialDevice.__init__(self, com_port, com_options)