MQTTnet is a high-performance .NET library for MQTT-based communication. It provides an MQTT client and an MQTT server (broker) and supports the MQTT protocol up to version 5. 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. Tested on the 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. 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).

Features

  • Async support
  • TLS support for client and server (but not UWP servers)
  • Access to internal trace messages
  • Unit tested (~636 tests)
  • No external dependencies
  • Communication via TCP (+TLS) or WS (WebSocket) supported

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow MQTTnet

MQTTnet Web Site

You Might Also Like
Innovate faster with enterprise-ready generative AI—enhanced by Gemini Icon
Innovate faster with enterprise-ready generative AI—enhanced by Gemini

Build, deploy, and scale machine learning (ML) models faster, with fully managed ML tools for any use case.

Vertex AI offers everything you need to build and use generative AI—from AI solutions, to Search and Conversation, to 130+ foundation models, to a unified AI platform.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MQTTnet!

Additional Project Details

Programming Language

C#

Related Categories

C# Communications Software, C# Libraries, C# MQTT Brokers, C# MQTT Clients

Registered

2022-06-06