Table of Contents

Class MqttMessage

Namespace
Pamoja.Mqtt
Assembly
Pamoja.Mqtt.dll

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

topic string

The topic the message was published to.

payload ReadOnlyMemory<byte>

The raw payload bytes.

Properties

Payload

The raw payload bytes.

public ReadOnlyMemory<byte> Payload { get; }

Property Value

ReadOnlyMemory<byte>

Topic

The topic the message was published to.

public string Topic { get; }

Property Value

string