Ejemplo n.º 1
0
    def __init__(self):
        """ Construtor
            @param rest_url : url of the rest server
        """
        # rest url
        self.rest_url = get_rest_url()

        # package informations
        self.client_id = None

        # device informations
        self.device_name = None
        self.device_type = None
Ejemplo n.º 2
0
    def __init__(self):
        """ Construtor
            @param rest_url : url of the rest server
        """
        # rest url
        self.rest_url = get_rest_url()

        # package informations
        self.client_id = None

        # device informations
        self.device_name = None
        self.device_type = None
Ejemplo n.º 3
0
    def __init__(self, device_id, sensor_name):
        """ Construtor
            @param rest_url : url of the rest server
        """
        # rest url
        self.rest_url = get_rest_url()

        # package informations
        self.device_id = device_id
        self.sensor_name = sensor_name
        try:
            self.sensor_id = self.get_sensor_id()
        except:
            self.sensor_id = None
Ejemplo n.º 4
0
    def __init__(self, device_id, sensor_reference):
        """ Construtor
            @param rest_url : url of the rest server
            @param sensor_reference : sensor reference
        """
        # rest url
        self.rest_url = get_rest_url()

        # package informations
        self.device_id = device_id
        self.sensor_reference = sensor_reference
        try:
            self.sensor_id = self.get_sensor_id()
        except:
            self.sensor_id = None
Ejemplo n.º 5
0
 def __init__(self, managerTestCase, device_id, command_name):
     """ Construtor
         @param rest_url : url of the rest server
     """
     # rest url
     self.rest_url = get_rest_url()
     # package informations
     self.managerTestCase = managerTestCase
     self.device_id = device_id
     self.command_name = command_name
     try:
         self.command_id = self.get_command_id()
     #   self.sensor = TestSensor(device_id, "get_total_space")
     except:
         self.command_id = None
         self.sensor = None
Ejemplo n.º 6
0
 def __init__(self, managerTestCase, device_id, command_name):
     """ Construtor
         @param rest_url : url of the rest server
     """
     # rest url
     self.rest_url = get_rest_url()
     # package informations
     self.managerTestCase = managerTestCase
     self.device_id = device_id
     self.command_name = command_name
     try:
         self.command_id = self.get_command_id()
      #   self.sensor = TestSensor(device_id, "get_total_space")
     except:
         self.command_id = None
         self.sensor = None