From f252374437f34a478b8ef3a55f2186330b5a339f Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Wed, 11 Nov 2020 21:12:04 +0100 Subject: [PATCH] Extend support for topic alias. --- Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs b/Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs index 0b4ac3a..038a4ed 100644 --- a/Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs +++ b/Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs @@ -153,7 +153,8 @@ namespace MQTTnet.Formatter.V5 AuthenticationMethod = connectionValidatorContext.AuthenticationMethod, AuthenticationData = connectionValidatorContext.ResponseAuthenticationData, AssignedClientIdentifier = connectionValidatorContext.AssignedClientIdentifier, - ReasonString = connectionValidatorContext.ReasonString + ReasonString = connectionValidatorContext.ReasonString, + TopicAliasMaximum = ushort.MaxValue } }; }