Table of Contents

Class MqttExtendedAuthenticationExchangeContext

Namespace
MQTTnet.Client
Assembly
MQTTnet.dll
public class MqttExtendedAuthenticationExchangeContext
Inheritance
MqttExtendedAuthenticationExchangeContext
Inherited Members

Constructors

MqttExtendedAuthenticationExchangeContext(MqttAuthPacket, MqttClient)

public MqttExtendedAuthenticationExchangeContext(MqttAuthPacket authPacket, MqttClient client)

Parameters

authPacket MqttAuthPacket
client MqttClient

Properties

AuthenticationData

Gets the authentication data. Hint: MQTT 5 feature only.

public byte[] AuthenticationData { get; }

Property Value

byte[]

AuthenticationMethod

Gets the authentication method. Hint: MQTT 5 feature only.

public string AuthenticationMethod { get; }

Property Value

string

Client

public MqttClient Client { get; }

Property Value

MqttClient

ReasonCode

Gets the reason code. Hint: MQTT 5 feature only.

public MqttAuthenticateReasonCode ReasonCode { get; }

Property Value

MqttAuthenticateReasonCode

ReasonString

Gets the reason string. Hint: MQTT 5 feature only.

public string ReasonString { get; }

Property Value

string

UserProperties

Gets the user properties. In MQTT 5, user properties are basic UTF-8 string key-value pairs that you can append to almost every type of MQTT packet. As long as you don’t exceed the maximum message size, you can use an unlimited number of user properties to add metadata to MQTT messages and pass information between publisher, broker, and subscriber. The feature is very similar to the HTTP header concept. Hint: MQTT 5 feature only.

public List<MqttUserProperty> UserProperties { get; }

Property Value

List<MqttUserProperty>