mqttnet - MQTTnet 5.1.0.1591

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.

PM> Install-Package MQTTnet -Version 5.1.0.1591 -Source https://www.myget.org/F/mqttnet/api/v3/index.json

Copy to clipboard

> nuget.exe install MQTTnet -Version 5.1.0.1591 -Source https://www.myget.org/F/mqttnet/api/v3/index.json

Copy to clipboard

> dotnet add package MQTTnet --version 5.1.0.1591 --source https://www.myget.org/F/mqttnet/api/v3/index.json

Copy to clipboard
<PackageReference Include="MQTTnet" Version="5.1.0.1591" />
Copy to clipboard
source https://www.myget.org/F/mqttnet/api/v3/index.json

nuget MQTTnet  ~> 5.1.0.1591
Copy to clipboard

> choco install MQTTnet --version 5.1.0.1591 --source https://www.myget.org/F/mqttnet/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "mqttnet" -SourceLocation "https://www.myget.org/F/mqttnet/api/v2"
Install-Module -Name "MQTTnet" -RequiredVersion "5.1.0.1591" -Repository "mqttnet" 
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/mqttnet/api/v2/symbolpackage/



NuGet Badge CI MyGet Size Join the chat at https://gitter.im/MQTTnet/community License: MIT

MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server ( broker) and supports the MQTT protocol up to version 5. It is compatible with mostly any supported .NET Framework version and CPU architecture.

Features

General

  • Async support
  • TLS support for client and server (but not UWP servers)
  • Extensible communication channels (e.g. In-Memory, TCP, TCP+TLS, WS)
  • Lightweight (only the low level implementation of MQTT, no overhead)
  • Performance optimized (processing ~150.000 messages / second)*
  • Uniform API across all supported versions of the MQTT protocol
  • Access to internal trace messages
  • Unit tested (~636 tests)
  • No external dependencies

* Tested on local machine (Intel i7 8700K) with MQTTnet client and server running in the same process using the TCP channel. The app for verification is part of this repository and stored in /Tests/MQTTnet.TestApp.NetCore.

Client

  • Communication via TCP (+TLS) or WS (WebSocket) supported
  • Included core LowLevelMqttClient with low level functionality
  • Also included ManagedMqttClient which maintains the connection and subscriptions automatically. Also application messages are queued and re-scheduled for higher QoS levels automatically.
  • Rx support (via another project)
  • Compatible with Microsoft Azure IoT Hub

Server (broker)

  • List of connected clients available
  • Supports connected clients with different protocol versions at the same time
  • Able to publish its own messages (no loopback client required)
  • Able to receive every message (no loopback client required)
  • Extensible client credential validation
  • Retained messages are supported including persisting via interface methods (own implementation required)
  • WebSockets supported (via ASP.NET Core 2.0, separate nuget)
  • A custom message interceptor can be added which allows transforming or extending every received application message
  • Validate subscriptions and deny subscribing of certain topics depending on requesting clients

Getting Started

MQTTnet is delivered via NuGet package manager. You can find the packages here: https://www.nuget.org/packages/MQTTnet/

Use these command in the Package Manager console to install MQTTnet manually:

Install-Package MQTTnet

Samples for using MQTTnet are part of this repository. For starters these samples are recommended:

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

  • Client: Late acknowledgement packets (PUBACK, PUBCOMP, SUBACK, UNSUBACK) for cancelled or timed-out requests no longer trigger a protocol violation and tear down the connection (#2078, #2079)
  • Server: Fixed exposing Topic Alias to clients (#2250, thanks to @suhashollakc)
  • .NETFramework 10.0
  • .NETFramework 8.0
  • .NETFramework 8.0: 8.0.0.0
  • .NETFramework 10.0: 10.0.0.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Timestamp: 6/16/2026 6:30:31 PM

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=Microsoft Public RSA Time Stamping Authority, OU=nShield TSS ESN:7D00-05E0-D947, OU=Microsoft America Operations, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  SHA1 hash: 1D3B54018265BFB6E0595791068E17EC57870DEA
  SHA256 hash: D8B93C97648662BBBF7DFEFE0F6AAB26792CC1C61D2BAA462AEEC6186AF8FECD
  Issued by: CN=Microsoft Public RSA Timestamping CA 2020, O=Microsoft Corporation, C=US
  Valid from: 10/23/2025 8:46:49 PM to 10/22/2026 8:46:49 PM

Signature type: Author

Verifying the author primary signature with certificate: 
  Subject Name: CN=MQTTNET (.NET Foundation), O=MQTTNET (.NET Foundation), L=Redmond, S=Washington, C=US, SERIALNUMBER=603 389 068, OID.2.5.4.15=Private Organization, OID.1.3.6.1.4.1.311.60.2.1.2=Washington, OID.1.3.6.1.4.1.311.60.2.1.3=US
  SHA1 hash: E68FF5B010660D69AD11970F2C7BF312E7C2D777
  SHA256 hash: 34BEAF4E9DB0297F6BDE1E6D92F7C8B666B41BE66B65432A5B8F7683E043102A
  Issued by: CN=.NET Foundation Projects Code Signing CA2, O=.NET Foundation, C=US
  Valid from: 5/15/2024 12:00:00 AM to 5/14/2027 11:59:59 PM

Owners

Christian

Authors

The contributors of MQTTnet

Project URL

https://github.com/dotnet/MQTTnet

License

Unknown

Tags

MQTT Message Queue Telemetry Transport MQTTClient MQTTServer Server MQTTBroker Broker NETStandard IoT InternetOfThings Messaging Hardware Arduino Sensor Actuator M2M ESP Smart Home Cities Automation Xamarin Blazor

Signature

Validation: Valid

Info

808 total downloads
0 downloads for version 5.1.0.1591
Download (231.29 KB)
Download symbols (95.71 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
5.1.0.1591 231.29 KB Tue, 16 Jun 2026 18:30:56 GMT 0
5.1.0.1589 230.34 KB Tue, 16 Jun 2026 17:12:50 GMT 0
5.1.0.1588 230.34 KB Tue, 16 Jun 2026 17:07:29 GMT 0
5.1.0.1587 230.26 KB Sat, 13 Jun 2026 16:09:48 GMT 0
5.1.0.1586 230.21 KB Sat, 13 Jun 2026 16:07:57 GMT 0
5.1.0.1585 230.6 KB Sat, 13 Jun 2026 16:06:35 GMT 0
5.1.0.1559 230.65 KB Wed, 04 Feb 2026 17:18:14 GMT 17
5.1.0.1558 230.66 KB Sun, 25 Jan 2026 10:52:23 GMT 10
5.1.0.1557 230.51 KB Thu, 22 Jan 2026 17:20:01 GMT 19
5.1.0.1551 228.23 KB Sun, 07 Dec 2025 15:26:38 GMT 11
5.1.0.1548 228.67 KB Sun, 07 Dec 2025 11:10:12 GMT 16
5.1.0.1544 228.65 KB Sat, 06 Dec 2025 13:18:54 GMT 12
5.1.0.1541 228.65 KB Sun, 23 Nov 2025 12:55:39 GMT 20
5.1.0.1540 228.66 KB Sun, 23 Nov 2025 12:45:16 GMT 15
5.1.0.1539 124.63 KB Fri, 24 Oct 2025 15:38:38 GMT 38
5.1.0.1537 124.63 KB Tue, 21 Oct 2025 11:18:12 GMT 31
5.1.0.1536 124.62 KB Tue, 21 Oct 2025 11:12:52 GMT 36
5.1.0.1535 124.64 KB Tue, 21 Oct 2025 10:35:39 GMT 31
5.1.0.1533 124.62 KB Tue, 21 Oct 2025 10:30:08 GMT 42
5.1.0.1531 124.63 KB Tue, 21 Oct 2025 10:26:25 GMT 40
5.0.0.1403-RC 121.46 KB Wed, 25 Dec 2024 13:19:14 GMT 85
5.0.0.1401-RC 121.59 KB Wed, 25 Dec 2024 12:24:16 GMT 91
5.0.0.1400-RC 122.15 KB Wed, 25 Dec 2024 12:14:57 GMT 105
5.0.0.1398-RC 121.28 KB Mon, 23 Dec 2024 11:42:16 GMT 86
5.0.0.1397-RC 120.44 KB Mon, 23 Dec 2024 11:18:35 GMT 103