record_control.py 390 B

123456789101112131415
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter service
  5. name:record_control.py 处理控制器的状态数据
  6. author:rabin
  7. key:control/type/gateway/device
  8. """
  9. from demeter.core import *
  10. from record_sensor import Record_sensor
  11. class Record_control(object):
  12. def handle(self, record, config, value):
  13. sensor = Record_sensor()
  14. sensor.handle(record, config, value)