From b431a5d3fec9fc5f59aed382d12fe13702f7fc35 Mon Sep 17 00:00:00 2001 From: Rido Date: Sat, 25 Nov 2023 06:45:10 -0800 Subject: [PATCH] Add ReasonCode to SendExtendedAuthenticationExchangeDataAsync (#1882) * add reason code to ext auth * Update ReleaseNotes.md --------- Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com> --- .github/workflows/ReleaseNotes.md | 3 ++- Source/MQTTnet/Client/MqttClient.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ReleaseNotes.md b/.github/workflows/ReleaseNotes.md index 4d23c932..b6c54605 100644 --- a/.github/workflows/ReleaseNotes.md +++ b/.github/workflows/ReleaseNotes.md @@ -1,3 +1,4 @@ * [Server] Fixed not working _UpdateRetainedMessageAsync_ public api (#1858, thanks to @kimdiego2098). * [Client] Added support for custom CA chain validation (#1851, thanks to @rido-min). -* [Client] Fixed handling of unobserved tasks exceptions (#1871). \ No newline at end of file +* [Client] Fixed handling of unobserved tasks exceptions (#1871). +* [Client] Fixed not specified ReasonCode when using _SendExtendedAuthenticationExchangeDataAsync_ (#1882, thanks to @rido-min). \ No newline at end of file diff --git a/Source/MQTTnet/Client/MqttClient.cs b/Source/MQTTnet/Client/MqttClient.cs index ced5739f..52c5cb8c 100644 --- a/Source/MQTTnet/Client/MqttClient.cs +++ b/Source/MQTTnet/Client/MqttClient.cs @@ -309,6 +309,7 @@ namespace MQTTnet.Client AuthenticationMethod = Options.AuthenticationMethod, AuthenticationData = data.AuthenticationData, ReasonString = data.ReasonString, + ReasonCode = data.ReasonCode, UserProperties = data.UserProperties };