You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MqttClientOptions.cs 770 B

7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
123456789101112131415161718192021222324
  1. using System;
  2. using MQTTnet.Serializer;
  3. namespace MQTTnet.Client
  4. {
  5. public class MqttClientOptions : IMqttClientOptions
  6. {
  7. public MqttApplicationMessage WillMessage { get; set; }
  8. public string ClientId { get; set; } = Guid.NewGuid().ToString("N");
  9. public bool CleanSession { get; set; } = true;
  10. public IMqttClientCredentials Credentials { get; set; } = new MqttClientCredentials();
  11. public TimeSpan KeepAlivePeriod { get; set; } = TimeSpan.FromSeconds(5);
  12. public TimeSpan CommunicationTimeout { get; set; } = TimeSpan.FromSeconds(10);
  13. public MqttProtocolVersion ProtocolVersion { get; set; } = MqttProtocolVersion.V311;
  14. public IMqttClientChannelOptions ChannelOptions { get; set; }
  15. }
  16. }