MQTTnet 4.0.0-preview5

.NET 5.0 .NET Core 3.1 .NET Standard 1.3 .NET Framework 4.5.2
This is a prerelease version of MQTTnet.
There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
Install-Package MQTTnet -Version 4.0.0-preview5
dotnet add package MQTTnet --version 4.0.0-preview5
<PackageReference Include="MQTTnet" Version="4.0.0-preview5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet --version 4.0.0-preview5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MQTTnet, 4.0.0-preview5"
#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=4.0.0-preview5&prerelease

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

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.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0 uap10.0.10240
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (134)

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

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.

Mars.Core

The runtime core provides step-based execution for multi-agent simulations in distributed environments as well as polyglot result output with different output types such as (MongoDB, PostgreSQL, Redis, CSV, GeoJson Socket, ...). For furher details please use the handbook: https://mars-group.org/wp-content/uploads/2018/09/mars-modelling-handbook.pdf

MQTTnet.Extensions.Rpc

This is an extension library which allows executing synchronous device calls including a response using MQTTnet.

L.Common.Core

Package Description

GitHub repositories (17)

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)
sleevezipper/hass-workstation-service
Provide useful sensors and services from your workstation to Home Assistant.
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
Version Downloads Last updated
4.0.1.184 4,033 6/16/2022
4.0.0.167 7,979 6/4/2022
3.1.2 246,027 1/27/2022
3.1.1 154,364 12/1/2021
3.1.0 56,069 11/6/2021
3.0.16 402,669 6/28/2021
3.0.15 346,650 2/26/2021
3.0.15-rc2 2,194 2/19/2021
3.0.15-rc1 1,996 2/12/2021
3.0.14 83,858 2/2/2021
3.0.14-rc8 550 1/30/2021
3.0.14-rc7 2,119 1/25/2021
3.0.14-rc6 409 1/23/2021
3.0.14-rc5 3,342 1/2/2021
3.0.14-rc4 735 12/27/2020
3.0.14-rc3 2,042 12/8/2020
3.0.14-rc2 1,115 11/29/2020
3.0.14-rc1 1,258 11/17/2020
3.0.13 323,505 10/24/2020
3.0.13-rc2 603 10/15/2020
3.0.13-rc1 9,598 9/19/2020
3.0.12 220,393 8/5/2020
3.0.12-rc2 1,021 7/26/2020
3.0.12-rc1 8,030 5/31/2020
3.0.11 460,998 5/16/2020
3.0.10 6,344 5/14/2020
3.0.10-rc2 519 5/13/2020
3.0.10-rc1 1,964 5/2/2020
3.0.9 62,202 4/10/2020
3.0.9-rc2 1,410 4/5/2020
3.0.9-rc1 4,779 12/8/2019
3.0.8 503,721 8/19/2019
3.0.7 2,938 8/18/2019
3.0.7-rc2 1,753 8/14/2019
3.0.7-rc1 1,750 8/13/2019
3.0.6 21,640 8/11/2019
3.0.6-beta1 2,498 7/11/2019
3.0.6-alpha1 1,776 7/9/2019
3.0.5 55,169 6/28/2019
3.0.4 3,175 6/27/2019
3.0.3 3,956 6/23/2019
3.0.3-rc3 1,870 6/14/2019
3.0.3-rc2 2,127 6/6/2019
3.0.3-rc1 3,212 5/17/2019
3.0.2 36,806 5/12/2019
3.0.2-rc1 1,691 5/11/2019
3.0.1 6,309 5/11/2019
3.0.0 29,184 5/5/2019
3.0.0-rc3 1,780 5/1/2019
3.0.0-rc2 3,796 4/26/2019
3.0.0-rc1 1,769 4/22/2019
3.0.0-beta1 2,912 4/7/2019
3.0.0-alpha3 1,865 3/24/2019
3.0.0-alpha2 5,811 1/27/2019
3.0.0-alpha1 2,283 12/22/2018
2.8.5 254,569 12/9/2018
2.8.5-rc5 1,970 11/28/2018
2.8.5-rc4 1,920 11/24/2018
2.8.5-rc3 1,986 11/5/2018
2.8.5-rc2 1,667 11/4/2018
2.8.5-rc1 2,352 10/29/2018
2.8.4 56,469 10/6/2018
2.8.4-rc2 1,693 10/4/2018
2.8.4-rc1 1,666 10/4/2018
2.8.3 14,641 10/1/2018
2.8.2 50,911 8/4/2018
2.8.2-rc1 1,853 7/27/2018
2.8.1 11,141 7/8/2018
2.8.1-rc1 1,867 7/7/2018
2.8.0 7,194 7/1/2018
2.8.0-rc6 1,987 6/29/2018
2.8.0-rc5 1,932 6/28/2018
2.8.0-rc4 2,239 6/24/2018
2.8.0-rc3 2,075 6/22/2018
2.8.0-rc2 2,079 6/21/2018
2.8.0-rc1 1,798 6/21/2018
2.8.0-beta1 1,992 6/19/2018
2.8.0-alpha5 2,809 6/6/2018
2.8.0-alpha4 2,319 6/5/2018
2.8.0-alpha3 1,817 6/5/2018
2.8.0-alpha2 2,029 6/4/2018
2.8.0-alpha1 2,825 5/10/2018
2.7.5 73,486 4/28/2018
2.7.5-rc2 1,912 4/25/2018
2.7.5-rc1 1,946 4/24/2018
2.7.4 33,398 4/11/2018
2.7.3 3,218 4/4/2018
2.7.3-rc3 2,982 4/1/2018
2.7.3-rc2 1,921 3/29/2018
2.7.3-rc1 1,865 3/27/2018
2.7.2 3,391 3/26/2018
2.7.1 8,621 3/13/2018
2.7.1-rc1 1,928 2/28/2018
2.7.0 12,540 2/4/2018
2.7.0-rc1 2,133 1/27/2018
2.6.0 5,135 12/18/2017
2.6.0-rc2 1,985 12/7/2017
2.6.0-rc1 1,840 12/4/2017
2.5.3 3,618 11/25/2017
2.5.3-rc1 1,911 11/22/2017
2.5.2 2,779 11/21/2017
2.5.2-rc1 1,787 11/17/2017
2.5.1 2,710 11/11/2017
2.5.0 3,084 11/8/2017
2.4.0 13,863 10/9/2017
2.3.1 2,663 9/28/2017
2.3.0 2,382 9/20/2017
2.2.1 2,520 8/21/2017
2.2.0 2,604 8/17/2017
2.1.5.1 2,128 8/7/2017
2.1.5 2,253 8/5/2017
2.1.4 2,817 7/15/2017
2.1.3 4,960 6/8/2017
2.1.2 2,331 5/5/2017
2.1.1 3,398 4/8/2017

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.
* [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] 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!).
* [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!).