Пример #1
0
    def __init__(self, com_port):
        com_options = {'baudrate': 38400, 'parity': PARITY_EVEN}

        SerialDevice.__init__(self, com_port, com_options)
Пример #2
0
 def lineReceived(self, line):
     line = line.rstrip('\r')
     SerialDevice.lineReceived(self, line)
Пример #3
0
 def lineReceived(self, line):
     line = line.rstrip('\r')
     SerialDevice.lineReceived(self, line)
Пример #4
0
 def __init__(self, com_port):
     com_options = { 'baudrate': 38400, 'parity': PARITY_EVEN }
     
     SerialDevice.__init__(self, com_port, com_options)