meter.go 486 B

123456789101112131415
  1. package iotInterface
  2. import (
  3. iotRtuService "IotAdmin/iot/service/rtuService"
  4. iotStruct "IotAdmin/iot/struct"
  5. )
  6. // MeterHandler 电表处理接口
  7. type MeterHandler interface {
  8. Collect(w iotRtuService.RtuNetPgr, data *iotStruct.CollectData) error
  9. SetAddress(w iotRtuService.RtuNetPgr, addr int) error
  10. GetConfig(w iotRtuService.RtuNetPgr) (*map[string]interface{}, error)
  11. VerifyConfig(data *string) (interface{}, error)
  12. SetConfig(w iotRtuService.RtuNetPgr, cfg *string) error
  13. }