Skip to main content

MqttPacket Class

NuGet: GHIElectronics.TinyCLR.Networking.Mqtt
Assembly: GHIElectronics.TinyCLR.Networking.Mqtt
Namespace: GHIElectronics.TinyCLR.Networking.Mqtt

Represents a single MQTT control packet and encodes it to bytes for sending.

public sealed class MqttPacket

Properties​

Payload​

public byte[] Payload { get; set; }

The message payload carried by the packet.

PacketId​

public uint PacketId { get; set; }

The packet identifier used to correlate acknowledgements.

IsPublished​

public bool IsPublished { get; set; }

Indicates whether this packet represents an outbound published message.