25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using MQTTnet.Core.Protocol;
-
- namespace MQTTnet.Core.Packets
- {
- public sealed class MqttPublishPacket : MqttBasePublishPacket
- {
- public bool Retain { get; set; }
-
- public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
-
- public bool Dup { get; set; }
-
- public string Topic { get; set; }
-
- public byte[] Payload { get; set; }
-
- public override string ToString()
- {
- return nameof(MqttPublishPacket) +
- ": [Topic=" + Topic + "]" +
- " [Payload=" + Convert.ToBase64String(Payload) + "]" +
- " [QoSLevel=" + QualityOfServiceLevel + "]" +
- " [Dup=" + Dup + "]" +
- " [Retain=" + Retain + "]" +
- " [PacketIdentifier=" + PacketIdentifier + "]";
- }
- }
- }
|