MQTTnet 3.0.0-alpha3

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 3.0.0-alpha3
dotnet add package MQTTnet --version 3.0.0-alpha3
<PackageReference Include="MQTTnet" Version="3.0.0-alpha3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet --version 3.0.0-alpha3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MQTTnet, 3.0.0-alpha3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MQTTnet as a Cake Addin
#addin nuget:?package=MQTTnet&version=3.0.0-alpha3&prerelease

// Install MQTTnet as a Cake Tool
#tool nuget:?package=MQTTnet&version=3.0.0-alpha3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* [Core] Added support for MQTTv5 packages.
* [Core] Performance improvements (removed several exceptions).
* [Core] Removed obsolete methods.
* [Core] Fixed a memory leak when processing lots of messages (thanks to @tschanko)
* [Core] Added more overloads for MQTT factory.
* [Core] The client password is now hidden from the logs (replaced with **** if set).
* [Client] Added validation of topics before publishing.
* [Client] Added new MQTTv5 features to options builder.
* [Client] Added uniform API across all supported MQTT versions (BREAKING CHANGE!)
* [Client] The client will now avoid sending an ACK if an exception has been thrown in message handler (thanks to @ramonsmits).
* [Client] Fixed issues in QoS 2 handling which leads to message loss.
* [Client] Replaced all events with proper async compatible handlers (BREAKING CHANGE!).
* [ManagedClient] Replaced all events with proper async compatible handlers (BREAKING CHANGE!).
* [ManagedClient] The log ID is now propagated to the internal client (thanks to @vbBerni).
* [ManagedClient] Added validation of topics before publishing.
* [ManagedClient] The internal MQTT client is now closed properly (thanks to @vbBerni).
* [Server] Added support for MQTTv5 clients. The server will still return _success_ for all cases at the moment even if more granular codes are available.
* [Server] Fixed issues in QoS 2 handling which leads to message loss.
* [Server] Replaced all events with proper async compatible handlers (BREAKING CHANGE!).
* [Server] The used logger instance is now propagated to the WebSocket server adapter.
* [Server] Added the flag "IsSecureConnection" which is set to true when the connection is encrypted.
* [Server] Fixed wrong will message behavior when stopping server (thanks to @JohBa)
* [Server] Added validation of topics before publishing.
* [MQTTnet Server] Added as first Alpha version of standalone cross platform MQTT server.

* [Note] Due to MQTTv5 a lot of new classes were introduced. This required adding new namespaces as well. Most classes are backward compatible but new namespaces must be added.

NuGet packages (99)

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.
TransbankSDK
This is the .Net SDK for Transbank Integration.

GitHub repositories (10)

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

Repository Stars
OPCFoundation/UA-.NETStandard
OPC Unified Architecture .NET Standard
ArduPilot/MissionPlanner
Mission Planner Ground Control Station (c# .net)
zhaopeiym/quartzui
基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
sleevezipper/hass-workstation-service
Provide useful sensors and services from your workstation to Home Assistant.

Version History

Version Downloads Last updated
3.0.16 18,589 6/28/2021
3.0.15 146,689 2/26/2021
3.0.15-rc2 1,012 2/19/2021
3.0.15-rc1 1,680 2/12/2021
3.0.14 41,687 2/2/2021
3.0.14-rc8 369 1/30/2021
3.0.14-rc7 1,438 1/25/2021
3.0.14-rc6 220 1/23/2021
3.0.14-rc5 1,890 1/2/2021
3.0.14-rc4 545 12/27/2020
3.0.14-rc3 1,471 12/8/2020
3.0.14-rc2 899 11/29/2020
3.0.14-rc1 965 11/17/2020
3.0.13 193,176 10/24/2020
3.0.13-rc2 403 10/15/2020
3.0.13-rc1 8,356 9/19/2020
3.0.12 150,518 8/5/2020
3.0.12-rc2 831 7/26/2020
3.0.12-rc1 5,261 5/31/2020
3.0.11 149,556 5/16/2020
3.0.10 5,340 5/14/2020
3.0.10-rc2 352 5/13/2020
3.0.10-rc1 1,776 5/2/2020
3.0.9 49,431 4/10/2020
3.0.9-rc2 1,219 4/5/2020
3.0.9-rc1 4,245 12/8/2019
3.0.8 383,225 8/19/2019
3.0.7 2,492 8/18/2019
3.0.7-rc2 1,576 8/14/2019
3.0.7-rc1 1,568 8/13/2019
3.0.6 20,548 8/11/2019
3.0.6-beta1 2,251 7/11/2019
3.0.6-alpha1 1,597 7/9/2019
3.0.5 40,745 6/28/2019
3.0.4 2,622 6/27/2019
3.0.3 3,491 6/23/2019
3.0.3-rc3 1,688 6/14/2019
3.0.3-rc2 1,891 6/6/2019
3.0.3-rc1 2,863 5/17/2019
3.0.2 29,454 5/12/2019
3.0.2-rc1 1,527 5/11/2019
3.0.1 2,355 5/11/2019
3.0.0 22,814 5/5/2019
3.0.0-rc3 1,607 5/1/2019
3.0.0-rc2 1,755 4/26/2019
3.0.0-rc1 1,612 4/22/2019
3.0.0-beta1 2,632 4/7/2019
3.0.0-alpha3 1,690 3/24/2019
3.0.0-alpha2 5,640 1/27/2019
3.0.0-alpha1 2,092 12/22/2018
2.8.5 204,172 12/9/2018
2.8.5-rc5 1,784 11/28/2018
2.8.5-rc4 1,712 11/24/2018
2.8.5-rc3 1,826 11/5/2018
2.8.5-rc2 1,558 11/4/2018
2.8.5-rc1 2,122 10/29/2018
2.8.4 48,039 10/6/2018
2.8.4-rc2 1,570 10/4/2018
2.8.4-rc1 1,543 10/4/2018
2.8.3 14,213 10/1/2018
2.8.2 43,725 8/4/2018
2.8.2-rc1 1,723 7/27/2018
2.8.1 9,940 7/8/2018
2.8.1-rc1 1,706 7/7/2018
2.8.0 5,523 7/1/2018
2.8.0-rc6 1,782 6/29/2018
2.8.0-rc5 1,754 6/28/2018
2.8.0-rc4 1,967 6/24/2018
2.8.0-rc3 1,798 6/22/2018
2.8.0-rc2 1,839 6/21/2018
2.8.0-rc1 1,658 6/21/2018
2.8.0-beta1 1,783 6/19/2018
2.8.0-alpha5 2,412 6/6/2018
2.8.0-alpha4 2,155 6/5/2018
2.8.0-alpha3 1,656 6/5/2018
2.8.0-alpha2 1,845 6/4/2018
2.8.0-alpha1 2,625 5/10/2018
2.7.5 53,344 4/28/2018
2.7.5-rc2 1,746 4/25/2018
2.7.5-rc1 1,767 4/24/2018
2.7.4 23,822 4/11/2018
2.7.3 2,909 4/4/2018
2.7.3-rc3 2,803 4/1/2018
2.7.3-rc2 1,760 3/29/2018
2.7.3-rc1 1,703 3/27/2018
2.7.2 3,101 3/26/2018
2.7.1 8,079 3/13/2018
2.7.1-rc1 1,764 2/28/2018
2.7.0 11,991 2/4/2018
2.7.0-rc1 1,959 1/27/2018
2.6.0 4,729 12/18/2017
2.6.0-rc2 1,830 12/7/2017
2.6.0-rc1 1,700 12/4/2017
2.5.3 3,214 11/25/2017
2.5.3-rc1 1,747 11/22/2017
2.5.2 2,491 11/21/2017
2.5.2-rc1 1,658 11/17/2017
2.5.1 2,323 11/11/2017
2.5.0 2,532 11/8/2017
2.4.0 10,203 10/9/2017
2.3.1 2,276 9/28/2017
2.3.0 2,021 9/20/2017
2.2.1 2,169 8/21/2017
2.2.0 2,176 8/17/2017
2.1.5.1 1,887 8/7/2017
2.1.5 1,888 8/5/2017
2.1.4 2,232 7/15/2017
2.1.3 4,703 6/8/2017
2.1.2 2,086 5/5/2017
2.1.1 2,780 4/8/2017
Show less