def get_messages_serial(self): l = self.device.inWaiting() if l > 0: s = self.device.read(self.device.inWaiting()) response = Message(s) response.parse() return response
def get_messages_ftdi(self): l = self.device.getQueueStatus() if l > 0: s = self.device.read(self.device.getQueueStatus()) response = Message(s) response.parse() return response