code: def read_bit(self, registeraddress, functioncode=2):
          
          _checkFunctioncode(functioncode, [1, 2])
          return self._genericCommand(functioncode, registeraddress)
docs: Read one bit from the slave.
  
          Args:
              * registeraddress (int): The slave register address (use decimal numbers, not hex).
              * functioncode (int): Modbus function code. Can be 1 or 2.
  
          Returns:
              The bit value 0 or 1 (int).
  
          Raises:
              ValueError, TypeError, IOError