def __init__(self, framer, endpoint): ''' Initializes our custom protocol :param framer: The decoder to use to process messages :param endpoint: The endpoint to send results to ''' ModbusClientProtocol.__init__(self, framer) self.endpoint = endpoint
def __init__(self, framer, endpoint): """ Initializes our custom protocol :param framer: The decoder to use to process messages :param endpoint: The endpoint to send results to """ ModbusClientProtocol.__init__(self, framer) self.endpoint = endpoint log.debug("Beginning the processing loop") reactor.callLater(CLIENT_DELAY, self.fetch_holding_registers)
def __init__(self, framer, pol_list, logger, reader, writepool): ''' Initializes our custom protocol :param framer: The decoder to use to process messages :param endpoint: The endpoint to send results to ''' ModbusClientProtocol.__init__(self, framer) self.pol_list = pol_list self.logger = logger self.reader = reader self.writepool = writepool self.logger.debug("Begining the processing loop") reactor.callLater(3, self.start_new_cycle)