mqttnet - MQTTnet 4.3.4.1018

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 4.3.4.1018 -Source https://www.myget.org/F/mqttnet/api/v3/index.json

Copy to clipboard

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

Copy to clipboard

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

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

nuget MQTTnet  ~> 4.3.4.1018
Copy to clipboard

> choco install MQTTnet --version 4.3.4.1018 --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 "4.3.4.1018" -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.

  • [Core] Optimized packet serialization of PUBACK and PUBREC packets for protocol version 5.0.0 (#1939, thanks to @Y-Sindo).
  • [Core] The package inspector is now fully async (#1941).
  • [Client] Added a dedicated exception when the client is not connected (#1954, thanks to @marcpiulachs).
  • [ManagedClient] Added a new event (SubscriptionsChangedAsync) which is fired when a subscription or unsubscription was made (#1894, thanks to @pdufrene).
  • .NETFramework 4.5.2
  • .NETFramework 4.6.1
  • .NETFramework 4.8
  • .NETStandard 1.3
    • NETStandard.Library (>= 1.6.1)
    • System.Net.Security (>= 4.3.2)
    • System.Net.WebSockets (>= 4.3.0)
    • System.Net.WebSockets.Client (>= 4.3.2)
  • UAP 10.0.10240
    • Microsoft.NETCore.UniversalWindowsPlatform (>= 6.2.10)
  • .NETCoreApp 3.1
  • .NETFramework 5.0
  • .NETFramework 6.0
  • .NETFramework 7.0
  • .NETStandard 2.0
  • .NETStandard 2.1
  • .NETCoreApp 3.1: 3.1.0.0
  • .NETFramework 4.5.2: 4.5.2.0
  • .NETFramework 4.6.1: 4.6.1.0
  • .NETFramework 4.8: 4.8.0.0
  • .NETFramework 5.0: 5.0.0.0
  • .NETFramework 6.0: 6.0.0.0
  • .NETFramework 7.0: 7.0.0.0
  • .NETStandard 1.3: 1.3.0.0
  • .NETStandard 2.0: 2.0.0.0
  • .NETStandard 2.1: 2.1.0.0
  • UAP 10.0.10240: 10.0.10240.0

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

Info

11 total downloads
0 downloads for version 4.3.4.1018
Download (1.45 MB)
Download symbols (656.35 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
4.3.4.1018 1.45 MB Tue, 23 Apr 2024 18:36:37 GMT 0
4.3.4.1016 1.45 MB Tue, 23 Apr 2024 18:22:26 GMT 0
4.3.4.1012 1.45 MB Sat, 20 Apr 2024 12:38:09 GMT 0
4.3.4.1011 1.45 MB Sat, 20 Apr 2024 12:02:23 GMT 0
4.3.4.1002 1.45 MB Thu, 11 Apr 2024 20:41:25 GMT 0
4.3.3.984 1.45 MB Sat, 02 Mar 2024 09:01:30 GMT 2
4.3.3.980 1.45 MB Sat, 02 Mar 2024 08:45:21 GMT 0
4.3.3.978 1.45 MB Thu, 29 Feb 2024 17:55:09 GMT 0
4.3.3.976 1.45 MB Thu, 29 Feb 2024 17:51:24 GMT 0
4.3.3.974 1.45 MB Wed, 21 Feb 2024 20:17:15 GMT 0
4.3.3.973 1.45 MB Tue, 20 Feb 2024 21:06:05 GMT 0
4.3.3.968 1.45 MB Wed, 14 Feb 2024 17:09:10 GMT 0
4.3.3.967 1.45 MB Wed, 14 Feb 2024 17:03:27 GMT 0
4.3.3.966 1.45 MB Wed, 14 Feb 2024 17:00:14 GMT 0
4.3.3.963 1.45 MB Tue, 06 Feb 2024 16:52:44 GMT 0
4.3.3.961 1.45 MB Tue, 30 Jan 2024 17:17:46 GMT 0
4.3.3.957 1.45 MB Sun, 21 Jan 2024 12:30:40 GMT 2
4.3.3.955 1.45 MB Tue, 16 Jan 2024 19:30:32 GMT 2
4.3.3.953 1.45 MB Fri, 08 Dec 2023 17:33:52 GMT 2
4.3.3.952 1.45 MB Fri, 08 Dec 2023 17:18:38 GMT 3