def __init__(self, power, duty_cycle, data, message_topic, frequency_of_message):
     Sensor.__init__(self, power, duty_cycle, data, message_topic, frequency_of_message)
 def __init__(self, env):
     Sensor.__init__(self, "Outdoor Brightness Sensor", env.ambient_light)
Exemplo n.º 3
0
 def __init__(self, env):
     Sensor.__init__(self, "User Locator", "livingroom")
 def __init__(self, header):
     Sensor.__init__(self, header)
Exemplo n.º 5
0
 def __init__(self, init_name, init_value, init_room_name):
     Sensor.__init__(self, init_name, init_value)
     self.room_name = init_room_name
Exemplo n.º 6
0
 def __init__(self, env):
     Sensor.__init__(self, "Power Meter", env.power_consumed_instant)
Exemplo n.º 7
0
 def __init__(self, env):
     Sensor.__init__(self, "Motion Sensor", env.motion_detected)
Exemplo n.º 8
0
 def __init__(self, env):
     Sensor.__init__(self, "Power Rate", env.electricity_rate)
 def __init__(self, env):
     Sensor.__init__(self, "Presence Sensor", env.presence_detected)