MQTTnet 3.0.0-alpha2

This is a prerelease version of MQTTnet.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MQTTnet --version 3.0.0-alpha2
                    
NuGet\Install-Package MQTTnet -Version 3.0.0-alpha2
                    
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="3.0.0-alpha2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MQTTnet" Version="3.0.0-alpha2" />
                    
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 3.0.0-alpha2
                    
#r "nuget: MQTTnet, 3.0.0-alpha2"
                    
#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.
#:package MQTTnet@3.0.0-alpha2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MQTTnet&version=3.0.0-alpha2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MQTTnet&version=3.0.0-alpha2&prerelease
                    
Install 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).

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  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 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 (387)

Showing the top 5 NuGet packages that depend on MQTTnet:

Package Downloads
Microsoft.Azure.Devices.Client

Device SDK for Azure IoT Hub

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.

Microsoft.Azure.Devices.Provisioning.Client

Provisioning Device Client SDK for Azure IoT Devices

MQTTnet.Server

This is the server implementation of MQTTnet.

GitHub repositories (44)

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

Repository Stars
testcontainers/testcontainers-dotnet
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
nuke-build/nuke
🏗 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.
RRQM/TouchSocket
TouchSocket is an integrated .NET networking framework that includes modules for socket, TCP, UDP, SSL, named pipes, HTTP, WebSocket, RPC, and more. It offers a one-stop solution for TCP packet issues and enables quick implementation of custom data message parsing using protocol templates.
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.
NimbleSense/Susalem
加入带锅宫酱,来到苏州耶路撒冷的怀抱吧!
zarusz/SlimMessageBus
Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
sleevezipper/hass-workstation-service
Provide useful sensors and services from your workstation to Home Assistant.
Monika1313/Wu.CommTool
基于C#、WPF、Prism、MaterialDesign、HandyControl开发的通讯调试工具。支持Modbus Rtu调试、Mqtt调试、TCP调试、串口调试、UDP调试
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
RapidScada/scada-v6
Contains Rapid SCADA 6 source code.
zhaopeiym/IoTClient.Examples
mirbeta/OpenMir2
Legend of Mir 2 Game server
TcOpenGroup/TcOpen
Application framework for industrial automation built on top of TwinCAT3 and .NET.
Version Downloads Last Updated
5.1.0.1559 293,885 2/4/2026
5.0.1.1416 2,300,897 1/5/2025
5.0.0.1405 26,380 12/31/2024
5.0.0.1214-RC 19,674 9/22/2024
4.3.7.1207 3,517,527 9/7/2024
4.3.6.1152 1,463,661 5/24/2024
4.3.5.1141 228,528 5/19/2024
4.3.4.1084 46,722 5/14/2024
4.3.3.952 1,932,508 12/8/2023
4.3.2.930 79,386 12/2/2023
4.3.1.873 1,174,418 9/6/2023
4.3.0.858 49,600 9/3/2023
4.2.1.781 901,247 5/29/2023
4.2.0.706 328,011 4/23/2023
4.1.4.563 1,303,451 12/8/2022
4.1.3.436 165,019 11/12/2022
4.1.2.350 504,791 10/24/2022
4.1.1.318 180,884 10/1/2022
4.1.0.247 376,207 8/7/2022
3.0.0-alpha2 8,040 1/27/2019
Loading failed

* [Core] Added support for MQTTv5 packages.
* [Core] Performance improvements (removed several exceptions).
* [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.
* [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.

* [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.