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.

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.

Showing the top 2 GitHub repositories that depend on MQTTnet:

Repository Stars
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.8 15,251 8/19/2019
3.0.7 1,515 8/18/2019
3.0.7-rc2 1,199 8/14/2019
3.0.7-rc1 1,191 8/13/2019
3.0.6 6,547 8/11/2019
3.0.6-beta1 1,621 7/11/2019
3.0.6-alpha1 1,236 7/9/2019
3.0.5 14,869 6/28/2019
3.0.4 1,668 6/27/2019
3.0.3 2,441 6/23/2019
3.0.3-rc3 1,283 6/14/2019
3.0.3-rc2 1,427 6/6/2019
3.0.3-rc1 1,810 5/17/2019
3.0.2 13,482 5/12/2019
3.0.2-rc1 1,193 5/11/2019
3.0.1 1,460 5/11/2019
3.0.0 8,398 5/5/2019
3.0.0-rc3 1,266 5/1/2019
3.0.0-rc2 1,291 4/26/2019
3.0.0-rc1 1,240 4/22/2019
3.0.0-beta1 1,842 4/7/2019
3.0.0-alpha3 1,368 3/24/2019
3.0.0-alpha2 5,206 1/27/2019
3.0.0-alpha1 1,656 12/22/2018
2.8.5 79,465 12/9/2018
2.8.5-rc5 1,382 11/28/2018
2.8.5-rc4 1,300 11/24/2018
2.8.5-rc3 1,401 11/5/2018
2.8.5-rc2 1,270 11/4/2018
2.8.5-rc1 1,598 10/29/2018
2.8.4 34,613 10/6/2018
2.8.4-rc2 1,284 10/4/2018
2.8.4-rc1 1,252 10/4/2018
2.8.3 13,129 10/1/2018
2.8.2 32,311 8/4/2018
2.8.2-rc1 1,407 7/27/2018
2.8.1 7,577 7/8/2018
2.8.1-rc1 1,384 7/7/2018
2.8.0 3,370 7/1/2018
2.8.0-rc6 1,334 6/29/2018
2.8.0-rc5 1,323 6/28/2018
2.8.0-rc4 1,467 6/24/2018
2.8.0-rc3 1,351 6/22/2018
2.8.0-rc2 1,356 6/21/2018
2.8.0-rc1 1,337 6/21/2018
2.8.0-beta1 1,358 6/19/2018
2.8.0-alpha5 1,768 6/6/2018
2.8.0-alpha4 1,807 6/5/2018
2.8.0-alpha3 1,329 6/5/2018
2.8.0-alpha2 1,515 6/4/2018
2.8.0-alpha1 2,278 5/10/2018
2.7.5 19,320 4/28/2018
2.7.5-rc2 1,408 4/25/2018
2.7.5-rc1 1,449 4/24/2018
2.7.4 14,307 4/11/2018
2.7.3 2,458 4/4/2018
2.7.3-rc3 2,441 4/1/2018
2.7.3-rc2 1,437 3/29/2018
2.7.3-rc1 1,376 3/27/2018
2.7.2 2,565 3/26/2018
2.7.1 4,833 3/13/2018
2.7.1-rc1 1,439 2/28/2018
2.7.0 8,713 2/4/2018
2.7.0-rc1 1,588 1/27/2018
2.6.0 3,941 12/18/2017
2.6.0-rc2 1,484 12/7/2017
2.6.0-rc1 1,394 12/4/2017
2.5.3 2,606 11/25/2017
2.5.3-rc1 1,381 11/22/2017
2.5.2 1,902 11/21/2017
2.5.2-rc1 1,347 11/17/2017
2.5.1 1,810 11/11/2017
2.5.0 1,735 11/8/2017
2.4.0 4,420 10/9/2017
2.3.1 1,768 9/28/2017
2.3.0 1,546 9/20/2017
2.2.1 1,729 8/21/2017
2.2.0 1,506 8/17/2017
2.1.5.1 1,497 8/7/2017
2.1.5 1,437 8/5/2017
2.1.4 1,671 7/15/2017
2.1.3 4,159 6/8/2017
2.1.2 1,653 5/5/2017
2.1.1 1,853 4/8/2017
Show less