def __init__(self, line, header, timeout): Response.__init__(self, line, header, timeout) n = bytes_outstanding(self, header) self.port.read(header, n, timeout) ConvertBitField.__init__(self,header[3:]) #self.buffer = header if self.line.crc(header): raise EModbusCRC self.set_crc()
def __init__(self, line, header, timeout): Response.__init__(self, line, header, timeout) n = bytes_outstanding(self, header) self.port.read(header, n, timeout) ConvertBitField.__init__(self, header[3:]) #self.buffer = header if self.line.crc(header): raise EModbusCRC self.set_crc()
def status(self, response_offset, start=0, orders=0): return ConvertBitField.status(self, response_offset, start, orders)