2
0

DataRequest.proto 705 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. import "nanopb.proto";
  3. import "configuration.proto";
  4. import "Status.proto";
  5. package sys.request;
  6. option (nanopb_fileopt).enum_to_string = true;
  7. enum type {
  8. UNKNOWN = 0;
  9. CONFIG = 1;
  10. STATUS = 2;
  11. MESSAGE = 3;
  12. RESTART = 4;
  13. NETWORK = 5;
  14. OTA = 6;
  15. SCAN = 7;
  16. }
  17. enum action {
  18. ACT_UNKNOWN = 0;
  19. SET = 1;
  20. GET = 2;
  21. }
  22. enum result {
  23. RES_UNKNOWN = 0;
  24. SUCCESS = 1;
  25. ERROR = 2;
  26. }
  27. message payload {
  28. type type = 1;
  29. action action = 2;
  30. oneof data {
  31. config config = 3;
  32. string URL = 4 [(nanopb).type = FT_POINTER];
  33. }
  34. }
  35. message response {
  36. result result = 1;
  37. string message = 2 [(nanopb).type = FT_POINTER];
  38. oneof data {
  39. status.data status = 3;
  40. }
  41. }