Class MqttMsgAuthentication
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.dll
Class for AUTH message from broker to client or client to broker as part of an extended authentication exchange, such as challenge / response authentication.
public class MqttMsgAuthentication : MqttMsgBase
- Inheritance
-
MqttMsgAuthentication
- Inherited Members
- Extension Methods
Constructors
MqttMsgAuthentication()
Constructor
public MqttMsgAuthentication()
Properties
AuthenticationData
Authentication Data, v5.0 only
public byte[] AuthenticationData { get; set; }
Property Value
- byte[]
AuthenticationMethod
Authentication Method, v5.0 only
public string AuthenticationMethod { get; set; }
Property Value
Reason
The Reason as a string, v5.0 only
public string Reason { get; set; }
Property Value
ReasonCode
Return Code, v5.0 only
public MqttReasonCode ReasonCode { get; set; }
Property Value
Methods
GetBytes(MqttProtocolVersion)
Returns the bytes that represents the current object.
public override byte[] GetBytes(MqttProtocolVersion protocolVersion)
Parameters
protocolVersion
MqttProtocolVersionMQTT protocol version
Returns
- byte[]
An array of bytes that represents the current object.
Parse(byte, MqttProtocolVersion, IMqttNetworkChannel)
Parse bytes for a PUBREC message
public static MqttMsgAuthentication Parse(byte fixedHeaderFirstByte, MqttProtocolVersion protocolVersion, IMqttNetworkChannel channel)
Parameters
fixedHeaderFirstByte
byteFirst fixed header byte
protocolVersion
MqttProtocolVersionMQTT Protocol Version
channel
IMqttNetworkChannelChannel connected to the broker
Returns
- MqttMsgAuthentication
PUBREC message instance