MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.

Latest version: 4.3.7.1207 registry icon
Maintenance score
100
Safety score
100
Popularity score
98
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
4.3.7.1207 0 0 0 0 0
4.3.6.1152 0 0 0 0 0
4.3.5.1141 0 0 0 0 0
4.3.4.1084 0 0 0 0 0
4.3.3.952 0 0 0 0 0
4.3.2.930 0 0 0 0 0
4.3.1.873 0 0 0 0 0
4.3.0.858 0 0 0 0 0
4.2.1.781 0 0 0 0 0
4.2.0.706 0 0 0 0 0
4.1.4.563 0 0 0 0 0
4.1.3.436 0 0 0 0 0
4.1.2.350 0 0 0 0 0
4.1.1.318 0 0 0 0 0
4.1.0.247 0 0 0 0 0
4.0.2.221 0 0 0 0 0
4.0.1.184 0 0 0 0 0
4.0.0.167 0 0 0 0 0
3.1.2 0 0 0 0 0
3.1.1 0 0 0 0 0
3.1.0 0 0 0 0 0
3.0.16 0 0 0 0 0
3.0.15 0 0 0 0 0
3.0.14 0 0 0 0 0
3.0.13 0 0 0 0 0
3.0.12 0 0 0 0 0
3.0.11 0 0 0 0 0
3.0.10 0 0 0 0 0
3.0.9 0 0 0 0 0
3.0.8 0 0 0 0 0
3.0.7 0 0 0 0 0
3.0.6 0 0 0 0 0
3.0.5 0 0 0 0 0
3.0.4 0 0 0 0 0
3.0.3 0 0 0 0 0
3.0.2 0 0 0 0 0
3.0.1 0 0 0 0 0
3.0.0 0 0 0 0 0
2.8.5 0 0 0 0 0
2.8.4 0 0 0 0 0
2.8.3 0 0 0 0 0
2.8.2 0 0 0 0 0
2.8.1 0 0 0 0 0
2.8.0 0 0 0 0 0
2.7.5 0 0 0 0 0
2.7.4 0 0 0 0 0
2.7.3 0 0 0 0 0
2.7.2 0 0 0 0 0
2.7.1 0 0 0 0 0
2.7.0 0 0 0 0 0
2.6.0 0 0 0 0 0
2.5.3 0 0 0 0 0
2.5.2 0 0 0 0 0
2.5.1 0 0 0 0 0
2.5.0 0 0 0 0 0
2.4.0 0 0 0 0 0
2.3.1 0 0 0 0 0
2.3.0 0 0 0 0 0
2.2.1 0 0 0 0 0
2.2.0 0 0 0 0 0
2.1.5.1 0 0 0 0 0
2.1.5 0 0 0 0 0
2.1.4 0 0 0 0 0
2.1.3 0 0 0 0 0
2.1.2 0 0 0 0 0
2.1.1 0 0 0 0 0

Stability
Latest release:

4.3.7.1207 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant




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.