Exemple #1
0
    def __init__(self, unit, address, count):
        """Constructor

        Args:
            unit (int): Unit ID
            address (int): Starting address.
            count (int): Count of the registers.
        """

        # Address, Count, key word args.
        ReadCoilsRequest.__init__(self, address, count, unit=unit)
    def __init__(self, address, **kwargs):
        """ Initializes a new instance

        :param address: The address to start reading from
        """
        ReadCoilsRequest.__init__(self, address, 16, **kwargs)
Exemple #3
0
    def __init__(self, address):
        ''' Initializes a new instance

        :param address: The address to start reading from
        '''
        ReadCoilsRequest.__init__(self, address, 16)
Exemple #4
0
    def __init__(self, address):
        ''' Initializes a new instance

        :param address: The address to start reading from
        '''
        ReadCoilsRequest.__init__(self, address, 16)
    def __init__(self, address, **kwargs):
        """ Initializes a new instance

        :param address: The address to start reading from
        """
        ReadCoilsRequest.__init__(self, address, 16, **kwargs)