MQTTnet 4.0.0.167

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker) and supports v3.1.0, v3.1.1 and v5.0.0 of the MQTT protocol.

No packages depend on MQTTnet.

We have joined the .NET Foundation! Version 4 comes with a new API so a lot of breaking changes should be expected. Checkout the upgrade guide (https://github.com/dotnet/MQTTnet/wiki/Upgrading-guide) for an overview of the changes. Checkout the new samples (https://github.com/dotnet/MQTTnet/tree/feature/master/Samples) how to use the new API. The wiki only remains for version 3 of this library. Preview builds of this library are available at: https://www.myget.org/feed/mqttnet/package/nuget/MQTTnet

  • [Core] Improved memory management when working with large payloads.
  • [Core] Added support for .NET 6.0.
  • [Core] nuget packages are now created by MSBuild including more information (i.e. commit hash).
  • [Client] Exposed socket linger state in options.
  • [Client] The OS will now choose the best TLS version to use. It is no longer fixed to 1.3 etc. (thanks to @patagonaa, #1271).
  • [Client] Added support for ServerKeepAlive (MQTTv5).
  • [Client] Exposed user properties and reason string in subscribe result.
  • [Client] Exposed user properties and reason string in unsubscribe result.
  • [Client] Migrated application message handler to a regular .NET event (BREAKING CHANGE!).
  • [Client] The will message is longer a regular application message due to not supported properties by the will message (BREAKING CHANGE!).
  • [Client] Timeouts are no longer handled inside the library. Each method (Connect, Publish etc.) supports a cancellation token so that custom timeouts can and must be used (BREAKING CHANGE!).
  • [Client] Exposed certificate revocation mode on options (@andyolivares).
  • [Server] Exposed socket linger state in options.
  • [Server] Added support for returning individual subscription errors (#80 thanks to @jimch)
  • [Server] Improved topic filter comparisons (support for $).
  • [Server] Added more MQTTv5 response information to all interceptors (BREAKING CHANGE!).
  • [Server] Improved session management for MQTT v5 (#1294, thanks to @logicaloud).
  • [Server] All interceptors and events are migrated from interfaces to simple events. All existing APIs are availble but must be migrated to corresponding events (BREAKING CHANGE!).
  • [Server] Removed all interceptor and event interfaces including the delegate implementations etc. (BREAKING CHANGE!).
  • [Server] Renamed a lot of classes and adjusted namespaces (BREAKING CHANGE!).
  • [Server] Introduced a new queueing approach for internal message process (packet bus).
  • [Server] For security reasons the default endpoint (1883) is no longer enabled by default (BREAKING CHANGE!).
  • [Server] Added support for choosing the cipher suite (thanks to @TimSiefert).
  • [Nuget] Added method summaries etc. to nuget packages (thanks to @SpringHgui).

.NET Framework 4.5.2

  • No dependencies.

.NET Framework 4.6.1

  • No dependencies.

.NET Standard 1.3

UAP 10.0.10240

.NET Core 3.1

  • No dependencies.

.NET 5.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
5.2.0.1603 5 07/09/2026
5.1.0.1559 2 07/09/2026
5.0.1.1416 4 07/09/2026
5.0.0.1405 3 07/09/2026
5.0.0.1214-RC 5 07/09/2026
4.3.7.1207 6 07/05/2026
4.3.6.1152 5 07/09/2026
4.3.5.1141 3 07/09/2026
4.3.4.1084 5 07/09/2026
4.3.3.952 4 07/09/2026
4.3.2.930 5 07/09/2026
4.3.1.873 5 07/09/2026
4.3.0.858 5 07/09/2026
4.2.1.781 4 07/09/2026
4.2.0.706 4 07/09/2026
4.1.4.563 4 07/09/2026
4.1.3.436 4 07/09/2026
4.1.2.350 5 07/09/2026
4.1.1.318 4 07/09/2026
4.1.0.247 5 07/09/2026
4.0.2.221 4 07/09/2026
4.0.1.184 3 07/09/2026
4.0.0.167 4 07/09/2026
3.1.2 5 07/09/2026
3.1.1 5 07/09/2026
3.1.0 5 07/09/2026
3.0.16 1 07/09/2026
3.0.15 3 07/09/2026
3.0.15-rc2 3 07/09/2026
3.0.15-rc1 4 07/09/2026
3.0.14 5 07/09/2026
3.0.14-rc8 4 07/09/2026
3.0.14-rc7 4 07/09/2026
3.0.14-rc6 3 07/09/2026
3.0.14-rc5 4 07/09/2026
3.0.14-rc4 5 07/09/2026
3.0.14-rc3 4 07/09/2026
3.0.14-rc2 5 07/09/2026
3.0.14-rc1 4 07/09/2026
3.0.13 5 07/09/2026
3.0.13-rc2 3 07/09/2026
3.0.13-rc1 4 07/09/2026
3.0.12 3 07/09/2026
3.0.12-rc2 5 07/09/2026
3.0.12-rc1 5 07/09/2026
3.0.11 2 07/09/2026
3.0.10 4 07/09/2026
3.0.10-rc2 5 07/09/2026
3.0.10-rc1 5 07/09/2026
3.0.9 3 07/09/2026
3.0.9-rc2 3 07/09/2026
3.0.9-rc1 5 07/09/2026
3.0.8 3 07/09/2026
3.0.7 5 07/09/2026
3.0.7-rc2 3 07/09/2026
3.0.7-rc1 4 07/09/2026
3.0.6 4 07/09/2026
3.0.6-beta1 3 07/09/2026
3.0.6-alpha1 3 07/09/2026
3.0.5 2 07/09/2026
3.0.4 5 07/09/2026
3.0.3 4 07/09/2026
3.0.3-rc3 4 07/09/2026
3.0.3-rc2 4 07/09/2026
3.0.3-rc1 5 07/09/2026
3.0.2 5 07/09/2026
3.0.2-rc1 4 07/09/2026
3.0.1 5 07/09/2026
3.0.0 4 07/09/2026
3.0.0-rc3 5 07/09/2026
3.0.0-rc2 4 07/09/2026
3.0.0-rc1 4 07/09/2026
3.0.0-beta1 4 07/09/2026
3.0.0-alpha3 4 07/09/2026
3.0.0-alpha2 4 07/09/2026
3.0.0-alpha1 4 07/09/2026
2.8.5 3 07/09/2026
2.8.5-rc5 4 07/09/2026
2.8.5-rc4 5 07/09/2026
2.8.5-rc3 5 07/09/2026
2.8.5-rc2 4 07/09/2026
2.8.5-rc1 4 07/09/2026
2.8.4 5 07/09/2026
2.8.4-rc2 1 07/09/2026
2.8.4-rc1 4 07/09/2026
2.8.3 5 07/09/2026
2.8.2 4 07/09/2026
2.8.2-rc1 3 07/09/2026
2.8.1 3 07/09/2026
2.8.1-rc1 4 07/09/2026
2.8.0 4 07/09/2026
2.8.0-rc6 3 07/09/2026
2.8.0-rc5 4 07/09/2026
2.8.0-rc4 4 07/09/2026
2.8.0-rc3 4 07/09/2026
2.8.0-rc2 4 07/09/2026
2.8.0-rc1 5 07/09/2026
2.8.0-beta1 4 07/09/2026
2.8.0-alpha5 5 07/09/2026
2.8.0-alpha4 4 07/09/2026
2.8.0-alpha3 5 07/09/2026
2.8.0-alpha2 4 07/09/2026
2.8.0-alpha1 4 07/09/2026
2.7.5 4 07/09/2026
2.7.5-rc2 5 07/09/2026
2.7.5-rc1 4 07/09/2026
2.7.4 5 07/09/2026
2.7.3 4 07/09/2026
2.7.3-rc3 4 07/09/2026
2.7.3-rc2 5 07/09/2026
2.7.3-rc1 4 07/09/2026
2.7.2 4 07/09/2026
2.7.1 3 07/09/2026
2.7.1-rc1 4 07/09/2026
2.7.0 4 07/09/2026
2.7.0-rc1 3 07/09/2026
2.6.0 4 07/09/2026
2.6.0-rc2 3 07/09/2026
2.6.0-rc1 5 07/09/2026
2.5.3 3 07/09/2026
2.5.3-rc1 4 07/09/2026
2.5.2 4 07/09/2026
2.5.2-rc1 4 07/09/2026
2.5.1 4 07/09/2026
2.5.0 4 07/09/2026
2.4.0 3 07/09/2026
2.3.1 5 07/09/2026
2.3.0 5 07/09/2026
2.2.1 4 07/09/2026
2.2.0 3 07/09/2026
2.1.5.1 4 07/09/2026
2.1.5 6 07/09/2026
2.1.4 4 07/09/2026
2.1.3 5 07/09/2026
2.1.2 4 07/09/2026
2.1.1 5 07/09/2026