controller.go 393 B

123456789101112131415161718192021222324
  1. package rpcs
  2. import (
  3. "sparrow/pkg/protocol"
  4. "sparrow/pkg/tlv"
  5. )
  6. type ArgsOnStatus struct {
  7. DeviceId string
  8. Timestamp uint64
  9. SubData []protocol.SubData
  10. VendorId string
  11. }
  12. type ReplyOnStatus ReplyEmptyResult
  13. type ArgsOnEvent struct {
  14. DeviceId string
  15. TimeStamp uint64
  16. SubDevice uint16
  17. No uint16
  18. Priority uint16
  19. Params []tlv.TLV
  20. }
  21. type ReplyOnEvent ReplyEmptyResult