MQTTnet 2.5.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 2.5.0
dotnet add package MQTTnet --version 2.5.0
<PackageReference Include="MQTTnet" Version="2.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MQTTnet --version 2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MQTTnet, 2.5.0"
#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=2.5.0

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

Release Notes

* [Core] Merged the platform specific projects (Thanks to @JanEggers)
* [Core] Migrated the trace to a non-static approach (Breaking Change!)
* [Core] Added a builder for application messages using a fluent API
* [Core] Introduced CI and DI (Thanks to @JanEggers)
* [Core] Added interfaces for publishing and receiving which applies to every client and server (Thanks to @ChristianRiedl)
* [Core] Fixed an issue when reading from closed streams
* [Client] Added a first version of a managed client which will manage the connection, subscription etc. automatically (Thanks to @JTrotta)
* [Client] The session state response from the server is now returned in the _ConnectAsync_ method and also part of the _Connected_ event args
* [Client] Added a _TopicFilterBuilder_ using a fluent API (Namespace Changes!)
* [Client] Added several new options for the WebSocket channel (Thanks to @ChristianRiedl)
* [Client] Refactored the options and added a builder using a fluent API (Breaking Change!)
* [Client] Added more options for WebSocket connections like RequestHeaders, SubProtocol etc.
* [Server] Added support for WebSockets via ASP.NET Core 2.0 (additional nuget) (Thanks to @ChristianRiedl, @JanEggers)
* [Server] Added support for a custom application message interceptor
* [Server] Fixed an issue with dropped connections on UWP (Thanks to @haeberle)
* [Server] Added support for a custom subscription interceptor which allows denying of subscriptions and closing the connection

NuGet packages (99)

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
This is a support library to integrate MQTTnet into AspNetCore.
Howell.Net.VillageSystem
Package Description
MQTTnet.Extensions.Rpc
This is an extension library which allows executing synchronous device calls including a response using MQTTnet.
TransbankSDK
This is the .Net SDK for Transbank Integration.

GitHub repositories (10)

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

Repository Stars
ArduPilot/MissionPlanner
Mission Planner Ground Control Station (c# .net)
OPCFoundation/UA-.NETStandard
OPC Unified Architecture .NET Standard
zhaopeiym/quartzui
基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
yllibed/Zigbee2MqttAssistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
sleevezipper/hass-workstation-service
Provide useful sensors and services from your workstation to Home Assistant.

Version History

Version Downloads Last updated
3.0.16 14,125 6/28/2021
3.0.15 141,222 2/26/2021
3.0.15-rc2 992 2/19/2021
3.0.15-rc1 1,611 2/12/2021
3.0.14 40,675 2/2/2021
3.0.14-rc8 368 1/30/2021
3.0.14-rc7 1,429 1/25/2021
3.0.14-rc6 219 1/23/2021
3.0.14-rc5 1,867 1/2/2021
3.0.14-rc4 544 12/27/2020
3.0.14-rc3 1,464 12/8/2020
3.0.14-rc2 898 11/29/2020
3.0.14-rc1 951 11/17/2020
3.0.13 190,312 10/24/2020
3.0.13-rc2 402 10/15/2020
3.0.13-rc1 8,331 9/19/2020
3.0.12 148,987 8/5/2020
3.0.12-rc2 830 7/26/2020
3.0.12-rc1 5,234 5/31/2020
3.0.11 148,005 5/16/2020
3.0.10 5,183 5/14/2020
3.0.10-rc2 351 5/13/2020
3.0.10-rc1 1,775 5/2/2020
3.0.9 49,208 4/10/2020
3.0.9-rc2 1,218 4/5/2020
3.0.9-rc1 4,202 12/8/2019
3.0.8 380,372 8/19/2019
3.0.7 2,489 8/18/2019
3.0.7-rc2 1,575 8/14/2019
3.0.7-rc1 1,567 8/13/2019
3.0.6 20,510 8/11/2019
3.0.6-beta1 2,249 7/11/2019
3.0.6-alpha1 1,596 7/9/2019
3.0.5 40,606 6/28/2019
3.0.4 2,619 6/27/2019
3.0.3 3,489 6/23/2019
3.0.3-rc3 1,687 6/14/2019
3.0.3-rc2 1,890 6/6/2019
3.0.3-rc1 2,858 5/17/2019
3.0.2 29,418 5/12/2019
3.0.2-rc1 1,526 5/11/2019
3.0.1 2,352 5/11/2019
3.0.0 22,736 5/5/2019
3.0.0-rc3 1,606 5/1/2019
3.0.0-rc2 1,723 4/26/2019
3.0.0-rc1 1,611 4/22/2019
3.0.0-beta1 2,631 4/7/2019
3.0.0-alpha3 1,689 3/24/2019
3.0.0-alpha2 5,639 1/27/2019
3.0.0-alpha1 2,091 12/22/2018
2.8.5 203,451 12/9/2018
2.8.5-rc5 1,783 11/28/2018
2.8.5-rc4 1,711 11/24/2018
2.8.5-rc3 1,825 11/5/2018
2.8.5-rc2 1,557 11/4/2018
2.8.5-rc1 2,121 10/29/2018
2.8.4 47,943 10/6/2018
2.8.4-rc2 1,569 10/4/2018
2.8.4-rc1 1,542 10/4/2018
2.8.3 14,210 10/1/2018
2.8.2 43,626 8/4/2018
2.8.2-rc1 1,722 7/27/2018
2.8.1 9,925 7/8/2018
2.8.1-rc1 1,705 7/7/2018
2.8.0 5,505 7/1/2018
2.8.0-rc6 1,781 6/29/2018
2.8.0-rc5 1,753 6/28/2018
2.8.0-rc4 1,966 6/24/2018
2.8.0-rc3 1,797 6/22/2018
2.8.0-rc2 1,838 6/21/2018
2.8.0-rc1 1,657 6/21/2018
2.8.0-beta1 1,782 6/19/2018
2.8.0-alpha5 2,411 6/6/2018
2.8.0-alpha4 2,154 6/5/2018
2.8.0-alpha3 1,655 6/5/2018
2.8.0-alpha2 1,844 6/4/2018
2.8.0-alpha1 2,624 5/10/2018
2.7.5 52,993 4/28/2018
2.7.5-rc2 1,745 4/25/2018
2.7.5-rc1 1,766 4/24/2018
2.7.4 23,633 4/11/2018
2.7.3 2,907 4/4/2018
2.7.3-rc3 2,802 4/1/2018
2.7.3-rc2 1,759 3/29/2018
2.7.3-rc1 1,702 3/27/2018
2.7.2 3,100 3/26/2018
2.7.1 8,075 3/13/2018
2.7.1-rc1 1,763 2/28/2018
2.7.0 11,984 2/4/2018
2.7.0-rc1 1,958 1/27/2018
2.6.0 4,724 12/18/2017
2.6.0-rc2 1,829 12/7/2017
2.6.0-rc1 1,699 12/4/2017
2.5.3 3,212 11/25/2017
2.5.3-rc1 1,746 11/22/2017
2.5.2 2,487 11/21/2017
2.5.2-rc1 1,657 11/17/2017
2.5.1 2,321 11/11/2017
2.5.0 2,527 11/8/2017
2.4.0 10,139 10/9/2017
2.3.1 2,275 9/28/2017
2.3.0 2,020 9/20/2017
2.2.1 2,168 8/21/2017
2.2.0 2,173 8/17/2017
2.1.5.1 1,886 8/7/2017
2.1.5 1,886 8/5/2017
2.1.4 2,231 7/15/2017
2.1.3 4,701 6/8/2017
2.1.2 2,084 5/5/2017
2.1.1 2,775 4/8/2017
Show less