From 6c29ea56fce333a3f3930597ece15945ea294aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6pke?= Date: Sat, 23 Jul 2022 10:37:57 +0200 Subject: [PATCH 1/2] Add PackageIdentifier to MqttApplicationMessageReceivedEventArgs (#1466) Provide `PackageIdentifier` as read only property in `MqttApplicationMessageReceivedEventArgs` --- .../MqttApplicationMessageReceivedEventArgs.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/MQTTnet/Client/Receiving/MqttApplicationMessageReceivedEventArgs.cs b/Source/MQTTnet/Client/Receiving/MqttApplicationMessageReceivedEventArgs.cs index c288ab26..4bf1c17c 100644 --- a/Source/MQTTnet/Client/Receiving/MqttApplicationMessageReceivedEventArgs.cs +++ b/Source/MQTTnet/Client/Receiving/MqttApplicationMessageReceivedEventArgs.cs @@ -25,6 +25,7 @@ namespace MQTTnet.Client ClientId = clientId; ApplicationMessage = applicationMessage ?? throw new ArgumentNullException(nameof(applicationMessage)); PublishPacket = publishPacket; + PacketIdentifier = publishPacket.PacketIdentifier; _acknowledgeHandler = acknowledgeHandler; } @@ -62,12 +63,17 @@ namespace MQTTnet.Client public bool IsHandled { get; set; } /// - /// Gets ir sets whether the library should send MQTT ACK packets automatically if required. + /// Gets or sets whether the library should send MQTT ACK packets automatically if required. /// public bool AutoAcknowledge { get; set; } = true; public object Tag { get; set; } - + + /// + /// Gets the indentifier of MQTT packet + /// + public ushort PacketIdentifier { get; } + public Task AcknowledgeAsync(CancellationToken cancellationToken) { if (_acknowledgeHandler == null) From a94776eeead86b0a9d147a375623a003bd6faa8e Mon Sep 17 00:00:00 2001 From: Christian <6939810+chkr1011@users.noreply.github.com> Date: Sat, 23 Jul 2022 11:02:00 +0200 Subject: [PATCH 2/2] Update version information. --- .github/workflows/ReleaseNotes.md | 8 -------- .github/workflows/ci.yml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/ReleaseNotes.md b/.github/workflows/ReleaseNotes.md index 897cf698..e69de29b 100644 --- a/.github/workflows/ReleaseNotes.md +++ b/.github/workflows/ReleaseNotes.md @@ -1,8 +0,0 @@ -* [Core] Updated nuget packages. -* [Core] The option _IgnoreCertificateChainErrors_ is now respected (thanks to @GodVenn, #1447). -* [ManagedClient] The managed client now sends the entire topic filter including new MQTTv5 properties when subscribing. -* [ManagedClient] Fixed wrong firing of _ApplicationMessageSkippedAsync_ event (thanks to @quackgizmo, #1460). -* [Server] Fixed reporting of _MaximumQoS_ in _ConnAck_ packet (MQTTv5 only) (#1442). -* [Server] Fix cross thread issue in session message storage for QoS 1 and 2. -* [Server] The event _ClientSubscribedTopicAsync_ is now fired after the subscription is completely processed internally (#1435). -* [Server] Improved CPU usage on lower end machines (#788). \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 359fb294..cb2c15da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] env: - VERSION: "4.0.2.${{github.run_number}}" + VERSION: "4.1.0.${{github.run_number}}" jobs: build: