MQTTnet 3.0.0

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

There is a newer version of this package available.
See the version list below for details.
Install-Package MQTTnet -Version 3.0.0
dotnet add package MQTTnet --version 3.0.0
<PackageReference Include="MQTTnet" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet --version 3.0.0
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.
* [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).
* [Core] Fixed a memory leak when using SSL connections (thanks to @biovoid).
* [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!).
* [Client] Added more configuration values to TCP endpoint options.
* [Client] Added used PacketIdentifier to publish result.
* [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.
* [Server] Added more configuration values to TCP endpoint options.
* [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.

Version History

Version Downloads Last updated
3.0.3 88 6/23/2019
3.0.3-rc3 116 6/14/2019
3.0.3-rc2 137 6/6/2019
3.0.3-rc1 350 5/17/2019
3.0.2 6,164 5/12/2019
3.0.2-rc1 53 5/11/2019
3.0.1 268 5/11/2019
3.0.0 3,260 5/5/2019
3.0.0-rc3 120 5/1/2019
3.0.0-rc2 139 4/26/2019
3.0.0-rc1 103 4/22/2019
3.0.0-beta1 370 4/7/2019
3.0.0-alpha3 221 3/24/2019
3.0.0-alpha2 3,357 1/27/2019
3.0.0-alpha1 489 12/22/2018
2.8.5 51,925 12/9/2018
2.8.5-rc5 244 11/28/2018
2.8.5-rc4 160 11/24/2018
2.8.5-rc3 255 11/5/2018
2.8.5-rc2 125 11/4/2018
2.8.5-rc1 446 10/29/2018
2.8.4 29,256 10/6/2018
2.8.4-rc2 136 10/4/2018
2.8.4-rc1 104 10/4/2018
2.8.3 6,875 10/1/2018
2.8.2 27,825 8/4/2018
2.8.2-rc1 261 7/27/2018
2.8.1 5,944 7/8/2018
2.8.1-rc1 199 7/7/2018
2.8.0 2,086 7/1/2018
2.8.0-rc6 166 6/29/2018
2.8.0-rc5 184 6/28/2018
2.8.0-rc4 311 6/24/2018
2.8.0-rc3 194 6/22/2018
2.8.0-rc2 207 6/21/2018
2.8.0-rc1 188 6/21/2018
2.8.0-beta1 206 6/19/2018
2.8.0-alpha5 600 6/6/2018
2.8.0-alpha4 655 6/5/2018
2.8.0-alpha3 181 6/5/2018
2.8.0-alpha2 335 6/4/2018
2.8.0-alpha1 1,117 5/10/2018
2.7.5 16,140 4/28/2018
2.7.5-rc2 262 4/25/2018
2.7.5-rc1 266 4/24/2018
2.7.4 12,588 4/11/2018
2.7.3 1,273 4/4/2018
2.7.3-rc3 1,291 4/1/2018
2.7.3-rc2 287 3/29/2018
2.7.3-rc1 224 3/27/2018
2.7.2 1,254 3/26/2018
2.7.1 1,782 3/13/2018
2.7.1-rc1 284 2/28/2018
2.7.0 6,871 2/4/2018
2.7.0-rc1 445 1/27/2018
2.6.0 2,723 12/18/2017
2.6.0-rc2 313 12/7/2017
2.6.0-rc1 233 12/4/2017
2.5.3 1,429 11/25/2017
2.5.3-rc1 219 11/22/2017
2.5.2 696 11/21/2017
2.5.2-rc1 205 11/17/2017
2.5.1 642 11/11/2017
2.5.0 541 11/8/2017
2.4.0 2,927 10/9/2017
2.3.1 597 9/28/2017
2.3.0 364 9/20/2017
2.2.1 552 8/21/2017
2.2.0 338 8/17/2017
2.1.5.1 324 8/7/2017
2.1.5 264 8/5/2017
2.1.4 496 7/15/2017
2.1.3 2,771 6/8/2017
2.1.2 477 5/5/2017
2.1.1 639 4/8/2017
Show less