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.

MqttConnectPacket.cs 657 B

7 年之前
7 年之前
7 年之前
12345678910111213141516171819202122
  1. namespace MQTTnet.Core.Packets
  2. {
  3. public sealed class MqttConnectPacket: MqttBasePacket
  4. {
  5. public string ClientId { get; set; }
  6. public string Username { get; set; }
  7. public string Password { get; set; }
  8. public ushort KeepAlivePeriod { get; set; }
  9. public bool CleanSession { get; set; }
  10. public MqttApplicationMessage WillMessage { get; set; }
  11. public override string ToString()
  12. {
  13. return $"{nameof(MqttConnectPacket)} [ClientId={ClientId}] [Username={Username}] [Password={Password}] [KeepAlivePeriod={KeepAlivePeriod}] [CleanSession={CleanSession}]";
  14. }
  15. }
  16. }