MQTTnet 4.0.0.167

There is a newer version of this package available.
See the version list below for details.
dotnet add package MQTTnet --version 4.0.0.167
                    
NuGet\Install-Package MQTTnet -Version 4.0.0.167
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MQTTnet" Version="4.0.0.167" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MQTTnet" Version="4.0.0.167" />
                    
Directory.Packages.props
<PackageReference Include="MQTTnet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MQTTnet --version 4.0.0.167
                    
#r "nuget: MQTTnet, 4.0.0.167"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=MQTTnet&version=4.0.0.167
                    
Install MQTTnet as a Cake Addin
#tool nuget:?package=MQTTnet&version=4.0.0.167
                    
Install MQTTnet as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net452 is compatible.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed.  uap10.0.10240 is compatible. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (299)

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.

MQTTnet.Extensions.Rpc

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

L.Common.Core

Package Description

LagoVista.IoT.Deployment.Admin

Provides Managers, Interfaces, Models and Repositories for Managing Deployments with the LagoVista Devices, IoT and Home Automation Frameworks.

GitHub repositories (39)

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

Repository Stars
nuke-build/nuke
TEMPORARILY ARCHIVED – 🏗 The AKEless Build System for C#/.NET
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
OPCFoundation/UA-.NETStandard
OPC Unified Architecture .NET Standard
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
LAB02-Research/HASS.Agent
Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
zhaopeiym/quartzui
基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
chenxuuu/llcom
🛠功能强大的串口工具。支持Lua自动化处理、串口调试、WinUSB、串口曲线、TCP测试、MQTT测试、编码转换、乱码恢复等功能
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
sleevezipper/hass-workstation-service
Provide useful sensors and services from your workstation to Home Assistant.
zarusz/SlimMessageBus
Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
Monika1313/Wu.CommTool
基于C#、WPF、Prism、MaterialDesign、HandyControl开发的通讯调试工具,,支持Modbus Rtu调试、Mqtt调试
RapidScada/scada-v6
Contains Rapid SCADA 6 source code
TcOpenGroup/TcOpen
Application framework for industrial automation built on top of TwinCAT3 and .NET.
cloudevents/sdk-csharp
CSharp SDK for CloudEvents
zhaopeiym/IoTClient.Examples
chkr1011/mqttMultimeter
Cross platform MQTT client for MQTT debugging and message inspection. It is based on the .NET library MQTTnet.
BEagle1984/silverback
Silverback is a simple but feature-rich message bus for .NET core (it currently supports Kafka, RabbitMQ and MQTT).
chkr1011/Wirehome.Core
Wirehome.Core is a home automation system written in C# targeting .NET Core. It runs on Linux, Windows and macOS.
Version Downloads Last updated
5.0.1.1416 337,516 1/5/2025
5.0.0.1405 8,914 12/31/2024
5.0.0.1214-RC 14,318 9/22/2024
4.3.7.1207 1,089,732 9/7/2024
4.3.6.1152 900,581 5/24/2024
4.3.5.1141 112,956 5/19/2024
4.3.4.1084 31,083 5/14/2024
4.3.3.952 1,359,703 12/8/2023
4.3.2.930 63,583 12/2/2023
4.3.1.873 897,802 9/6/2023
4.3.0.858 39,972 9/3/2023
4.2.1.781 819,408 5/29/2023
4.2.0.706 291,207 4/23/2023
4.1.4.563 1,048,212 12/8/2022
4.1.3.436 151,237 11/12/2022
4.1.2.350 384,112 10/24/2022
4.1.1.318 163,857 10/1/2022
4.1.0.247 326,593 8/7/2022
4.0.2.221 126,106 7/13/2022
4.0.1.184 198,272 6/16/2022
4.0.0.167 1,280,479 6/4/2022
3.1.2 2,083,469 1/27/2022
3.1.1 398,180 12/1/2021
3.1.0 218,526 11/6/2021
3.0.16 978,345 6/28/2021
3.0.15 703,102 2/26/2021
3.0.15-rc2 4,631 2/19/2021
3.0.15-rc1 4,197 2/12/2021
3.0.14 155,900 2/2/2021
3.0.14-rc8 2,779 1/30/2021
3.0.14-rc7 4,297 1/25/2021
3.0.14-rc6 2,648 1/23/2021
3.0.14-rc5 5,902 1/2/2021
3.0.14-rc4 2,961 12/27/2020
3.0.14-rc3 5,337 12/8/2020
3.0.14-rc2 3,070 11/29/2020
3.0.14-rc1 3,926 11/17/2020
3.0.13 730,568 10/24/2020
3.0.13-rc2 2,813 10/15/2020
3.0.13-rc1 12,102 9/19/2020
3.0.12 312,761 8/5/2020
3.0.12-rc2 3,270 7/26/2020
3.0.12-rc1 10,640 5/31/2020
3.0.11 1,168,394 5/16/2020
3.0.10 9,814 5/14/2020
3.0.10-rc2 2,797 5/13/2020
3.0.10-rc1 4,207 5/2/2020
3.0.9 96,693 4/10/2020
3.0.9-rc2 3,612 4/5/2020
3.0.9-rc1 7,251 12/8/2019
3.0.8 991,116 8/19/2019
3.0.7 5,985 8/18/2019
3.0.7-rc2 4,033 8/14/2019
3.0.7-rc1 3,943 8/13/2019
3.0.6 25,534 8/11/2019
3.0.6-beta1 4,834 7/11/2019
3.0.6-alpha1 4,049 7/9/2019
3.0.5 96,278 6/28/2019
3.0.4 8,673 6/27/2019
3.0.3 7,103 6/23/2019
3.0.3-rc3 4,165 6/14/2019
3.0.3-rc2 4,360 6/6/2019
3.0.3-rc1 5,495 5/17/2019
3.0.2 45,867 5/12/2019
3.0.2-rc1 3,535 5/11/2019
3.0.1 15,804 5/11/2019
3.0.0 42,665 5/5/2019
3.0.0-rc3 3,661 5/1/2019
3.0.0-rc2 7,820 4/26/2019
3.0.0-rc1 3,694 4/22/2019
3.0.0-beta1 5,119 4/7/2019
3.0.0-alpha3 3,778 3/24/2019
3.0.0-alpha2 7,727 1/27/2019
3.0.0-alpha1 4,188 12/22/2018
2.8.5 360,971 12/9/2018
2.8.5-rc5 3,834 11/28/2018
2.8.5-rc4 3,886 11/24/2018
2.8.5-rc3 3,826 11/5/2018
2.8.5-rc2 2,541 11/4/2018
2.8.5-rc1 5,079 10/29/2018
2.8.4 71,909 10/6/2018
2.8.4-rc2 2,549 10/4/2018
2.8.4-rc1 2,458 10/4/2018
2.8.3 17,725 10/1/2018
2.8.2 81,089 8/4/2018
2.8.2-rc1 2,781 7/27/2018
2.8.1 15,922 7/8/2018
2.8.1-rc1 2,872 7/7/2018
2.8.0 14,932 7/1/2018
2.8.0-rc6 3,995 6/29/2018
2.8.0-rc5 3,957 6/28/2018
2.8.0-rc4 4,400 6/24/2018
2.8.0-rc3 4,010 6/22/2018
2.8.0-rc2 4,177 6/21/2018
2.8.0-rc1 2,799 6/21/2018
2.8.0-beta1 3,558 6/19/2018
2.8.0-alpha5 5,461 6/6/2018
2.8.0-alpha4 3,270 6/5/2018
2.8.0-alpha3 2,840 6/5/2018
2.8.0-alpha2 3,006 6/4/2018
2.8.0-alpha1 6,353 5/10/2018
2.7.5 133,769 4/28/2018
2.7.5-rc2 2,861 4/25/2018
2.7.5-rc1 2,894 4/24/2018
2.7.4 45,194 4/11/2018
2.7.3 5,204 4/4/2018
2.7.3-rc3 4,093 4/1/2018
2.7.3-rc2 2,887 3/29/2018
2.7.3-rc1 2,802 3/27/2018
2.7.2 5,203 3/26/2018
2.7.1 10,547 3/13/2018
2.7.1-rc1 2,978 2/28/2018
2.7.0 15,081 2/4/2018
2.7.0-rc1 3,646 1/27/2018
2.6.0 7,291 12/18/2017
2.6.0-rc2 3,015 12/7/2017
2.6.0-rc1 2,816 12/4/2017
2.5.3 5,631 11/25/2017
2.5.3-rc1 3,384 11/22/2017
2.5.2 4,652 11/21/2017
2.5.2-rc1 2,654 11/17/2017
2.5.1 4,645 11/11/2017
2.5.0 5,600 11/8/2017
2.4.0 24,788 10/9/2017
2.3.1 4,073 9/28/2017
2.3.0 3,734 9/20/2017
2.2.1 3,778 8/21/2017
2.2.0 4,073 8/17/2017
2.1.5.1 3,285 8/7/2017
2.1.5 3,566 8/5/2017
2.1.4 4,293 7/15/2017
2.1.3 6,219 6/8/2017
2.1.2 3,638 5/5/2017
2.1.1 10,173 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.
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).