Пример #1
0
 def _add_sensor(self, sensorid):
     self.gw.sensors[sensorid] = my.Sensor(sensorid)
     return self.gw.sensors[sensorid]
Пример #2
0
 def _add_sensor(self, sensorid):
     """Add sensor node. Return sensor node instance."""
     self.gateway.sensors[sensorid] = my.Sensor(sensorid)
     return self.gateway.sensors[sensorid]