您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

17 行
465 B

  1. using MQTTnet.Core.Protocol;
  2. namespace MQTTnet.Core.Packets
  3. {
  4. public sealed class MqttConnAckPacket : MqttBasePacket
  5. {
  6. public bool IsSessionPresent { get; set; }
  7. public MqttConnectReturnCode ConnectReturnCode { get; set; }
  8. public override string ToString()
  9. {
  10. return nameof(MqttConnAckPacket) + ": [ConnectReturnCode=" + ConnectReturnCode + "] [IsSessionPresent=" + IsSessionPresent + "]";
  11. }
  12. }
  13. }