access.go 456 B

123456789101112131415161718192021222324252627
  1. package rpcs
  2. import (
  3. "sparrow/pkg/protocol"
  4. "sparrow/pkg/tlv"
  5. )
  6. type ArgsSetStatus struct {
  7. DeviceId uint64
  8. Status []protocol.SubData
  9. }
  10. type ReplySetStatus ReplyEmptyResult
  11. type ArgsGetStatus ArgsDeviceId
  12. type ReplyGetStatus struct {
  13. Status []protocol.SubData
  14. }
  15. type ArgsSendCommand struct {
  16. DeviceId uint64
  17. SubDevice uint16
  18. No uint16
  19. Priority uint16
  20. WaitTime uint32
  21. Params []tlv.TLV
  22. }
  23. type ReplySendCommand ReplyEmptyResult