MQTTnet 2.8.0-rc6

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker).

This is a prerelease version of MQTTnet.
There is a newer version of this package available.
See the version list below for details.
Install-Package MQTTnet -Version 2.8.0-rc6
dotnet add package MQTTnet --version 2.8.0-rc6
<PackageReference Include="MQTTnet" Version="2.8.0-rc6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet --version 2.8.0-rc6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* [Core] Performance optimizations.
* [Core] Due to performance reasons the timestamp of log messages is now in UTC format.
* [Core] Added several packet validations.
* [Core] Log messages now contain the complete source path including parent components.
* [Core] The adapter now has an _Endpoint_ definition as string containing remote IP and port.
* [Client] Received messages are now processed completely in the worker thread without creating new Tasks.
* [Client] Fixed wrong calculation for sending keep alive packets (thanks to @cstichlberger)
* [Client] A clean disconnect (via DisconnectAsync) will no longer throw an exception.
* [Client] Added new overloads for quick message publishing.
* [ManagedClient] The managed client is moved to a separate nuget package.
* [ManagedClient] Added an own message format with extended properties like ID (BREAKING CHANGE).
* [ManagedClient] Fixed a loading issue of stored application messages (thanks to @JTrotta).
* [ManagedClient] Added a new event which is fired when a synchronization of the subscriptions has failed.
* [ManagedClient] Added a new event which is fired when a connection attempt has failed.
* [ManagedClient] Exposed a new property which provides the count of not published messages (pending messages count).
* [Server] Added support for other WebSocket sub protocol formats like mqttv-3.1.1 (thanks to @israellot).
* [Server] The takeover of an existing client sessions is now treated as a _clean_ disconnect of the previous client.
* [Server] The pending messages queue per client is now limited to 250 messages. Overflow strategy and count can be changed via options (thanks to @VladimirAkopyan)
* [Server] Keep alive checking is now suspended while large packages are being received (and thus the client is connected). Keep alive checking continues after a large packet is received completely.
* [Server] Rewritten the _ConnectedClients_ API and added new features for disconnecting and Endpoint information (IP etc.).
* [Server] Added settings for disabling persistent sessions and defining a max pending messages queue size per session.
* [Server] Persistent sessions are disabled by default (BREAKING CHANGE!).
* [Server] Added a new interceptor which is invoked before a new message is added to the client queue.
* [Server] Added support for Linux servers by dividing IPv4 and IPv6 support and adding new options (BREAKING CHANGE!).
* [Server] Gracefully closed connections are no longer reported as warnings.

NuGet packages (67)

Showing the top 5 NuGet packages that depend on MQTTnet:

Package Downloads
MQTTnet.Extensions.ManagedClient
This is an extension library which provides a managed MQTT client with additional features using MQTTnet.
MQTTnet.AspNetCore
This is a support library to integrate MQTTnet into AspNetCore.
Howell.Net.VillageSystem
Package Description
MQTTnet.Extensions.Rpc
This is an extension library which allows executing synchronous device calls including a response using MQTTnet.
MQTTClientRx
MQTT Client utilizing the power of Reactive Extensions

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on MQTTnet:

Repository Stars
ArduPilot/MissionPlanner
Mission Planner Ground Control Station (c# .net)
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
Hyrules/WinHue
Controlling the Philips Hue lighting system from your Windows PC.
chkr1011/Wirehome.Core
Wirehome.Core is a home automation system written in C# targeting .NET Core. It runs on Linux, Windows and macOS.

Version History

Version Downloads Last updated
3.0.12 1,550 8/5/2020
3.0.12-rc2 269 7/26/2020
3.0.12-rc1 2,017 5/31/2020
3.0.11 42,227 5/16/2020
3.0.10 1,550 5/14/2020
3.0.10-rc2 106 5/13/2020
3.0.10-rc1 1,521 5/2/2020
3.0.9 23,635 4/10/2020
3.0.9-rc2 929 4/5/2020
3.0.9-rc1 3,119 12/8/2019
3.0.8 224,217 8/19/2019
3.0.7 2,106 8/18/2019
3.0.7-rc2 1,316 8/14/2019
3.0.7-rc1 1,316 8/13/2019
3.0.6 14,864 8/11/2019
3.0.6-beta1 1,922 7/11/2019
3.0.6-alpha1 1,353 7/9/2019
3.0.5 25,313 6/28/2019
3.0.4 2,143 6/27/2019
3.0.3 3,017 6/23/2019
3.0.3-rc3 1,434 6/14/2019
3.0.3-rc2 1,638 6/6/2019
3.0.3-rc1 2,233 5/17/2019
3.0.2 24,027 5/12/2019
3.0.2-rc1 1,302 5/11/2019
3.0.1 1,668 5/11/2019
3.0.0 14,813 5/5/2019
3.0.0-rc3 1,374 5/1/2019
3.0.0-rc2 1,486 4/26/2019
3.0.0-rc1 1,360 4/22/2019
3.0.0-beta1 2,300 4/7/2019
3.0.0-alpha3 1,479 3/24/2019
3.0.0-alpha2 5,326 1/27/2019
3.0.0-alpha1 1,790 12/22/2018
2.8.5 137,189 12/9/2018
2.8.5-rc5 1,487 11/28/2018
2.8.5-rc4 1,403 11/24/2018
2.8.5-rc3 1,514 11/5/2018
2.8.5-rc2 1,339 11/4/2018
2.8.5-rc1 1,753 10/29/2018
2.8.4 41,350 10/6/2018
2.8.4-rc2 1,351 10/4/2018
2.8.4-rc1 1,325 10/4/2018
2.8.3 13,758 10/1/2018
2.8.2 37,375 8/4/2018
2.8.2-rc1 1,498 7/27/2018
2.8.1 8,770 7/8/2018
2.8.1-rc1 1,484 7/7/2018
2.8.0 4,263 7/1/2018
2.8.0-rc6 1,474 6/29/2018
2.8.0-rc5 1,447 6/28/2018
2.8.0-rc4 1,626 6/24/2018
2.8.0-rc3 1,495 6/22/2018
2.8.0-rc2 1,531 6/21/2018
2.8.0-rc1 1,447 6/21/2018
2.8.0-beta1 1,490 6/19/2018
2.8.0-alpha5 1,975 6/6/2018
2.8.0-alpha4 1,923 6/5/2018
2.8.0-alpha3 1,433 6/5/2018
2.8.0-alpha2 1,624 6/4/2018
2.8.0-alpha1 2,389 5/10/2018
2.7.5 30,851 4/28/2018
2.7.5-rc2 1,525 4/25/2018
2.7.5-rc1 1,554 4/24/2018
2.7.4 15,498 4/11/2018
2.7.3 2,609 4/4/2018
2.7.3-rc3 2,556 4/1/2018
2.7.3-rc2 1,547 3/29/2018
2.7.3-rc1 1,486 3/27/2018
2.7.2 2,814 3/26/2018
2.7.1 7,050 3/13/2018
2.7.1-rc1 1,546 2/28/2018
2.7.0 11,106 2/4/2018
2.7.0-rc1 1,716 1/27/2018
2.6.0 4,242 12/18/2017
2.6.0-rc2 1,603 12/7/2017
2.6.0-rc1 1,488 12/4/2017
2.5.3 2,839 11/25/2017
2.5.3-rc1 1,496 11/22/2017
2.5.2 2,151 11/21/2017
2.5.2-rc1 1,441 11/17/2017
2.5.1 1,978 11/11/2017
2.5.0 2,018 11/8/2017
2.4.0 6,698 10/9/2017
2.3.1 1,953 9/28/2017
2.3.0 1,711 9/20/2017
2.2.1 1,849 8/21/2017
2.2.0 1,723 8/17/2017
2.1.5.1 1,620 8/7/2017
2.1.5 1,569 8/5/2017
2.1.4 1,836 7/15/2017
2.1.3 4,340 6/8/2017
2.1.2 1,799 5/5/2017
2.1.1 2,196 4/8/2017
Show less