Class MqttMessage
A message received from a subscribed topic.
public sealed class MqttMessage
- Inheritance
-
MqttMessage
- Inherited Members
Constructors
MqttMessage(string, ReadOnlyMemory<byte>)
Creates a message from a topic and its payload.
public MqttMessage(string topic, ReadOnlyMemory<byte> payload)
Parameters
topicstringThe topic the message was published to.
payloadReadOnlyMemory<byte>The raw payload bytes.
Properties
Payload
The raw payload bytes.
public ReadOnlyMemory<byte> Payload { get; }
Property Value
Topic
The topic the message was published to.
public string Topic { get; }