mqtt_async.proto 900 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto2";
  2. message CreateOpts {
  3. optional int32 maxBufferedMessages = 3 [default = 1000000];
  4. }
  5. message ConnectOps {
  6. optional bool cleansession = 1 [default = true];
  7. optional int32 keepAliveInterval = 2 [default = 30];
  8. optional bool automaticReconnect = 3 [default = true];
  9. optional int32 minRetryInterval = 4 [default = 3];
  10. optional int32 maxRetryInterval = 5 [default = 10];
  11. }
  12. message SendMessageEtc {
  13. required string topic = 1;
  14. optional int32 qos = 2 [default = 1];
  15. }
  16. message SubscribeEtc {
  17. required string topic = 1;
  18. optional int32 qos = 2 [default = 1];
  19. }
  20. message MqttAsyncConfig {
  21. optional string address = 1 [default = "mqtt://127.0.0.1:1883"];
  22. optional string client_id = 2 [default = "Auto"];
  23. optional CreateOpts create_opts = 3;
  24. optional ConnectOps connect_ops = 4;
  25. repeated SendMessageEtc sendMessage = 5;
  26. repeated SubscribeEtc subscribe = 6;
  27. }