You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 4.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <p align="center">
  2. <img src="https://github.com/chkr1011/MQTTnet/blob/master/Images/Logo_128x128.png?raw=true" width="128">
  3. </p>
  4. [![NuGet Badge](https://buildstats.info/nuget/MQTTnet)](https://www.nuget.org/packages/MQTTnet)
  5. [![BCH compliance](https://bettercodehub.com/edge/badge/chkr1011/MQTTnet?branch=master)](https://bettercodehub.com/)
  6. # MQTTnet
  7. 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/.
  8. # Features
  9. ### General
  10. * Async support
  11. * TLS 1.2 support for client and server (but not UWP servers)
  12. * Extensible communication channels (i.e. In-Memory, TCP, TCP+TLS, WS)
  13. * Lightweight (only the low level implementation of MQTT, no overhead)
  14. * Performance optimized (processing ~27.000 messages / second)*
  15. * Interfaces included for mocking and testing
  16. * Access to internal trace messages
  17. * Unit tested (67+ tests)
  18. \* Tested on local machine 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.NetFramework_.
  19. ### Client
  20. * Communication via TCP (+TLS) or WS (WebSocket) supported
  21. * Included core _MqttClient_ with low level functionality
  22. * Also included _ManagedMqttClient_ which maintains the connection and subscriptions automatically. Also application messages are queued and re-scheduled for higher QoS levels automatically.
  23. * Rx support (via another project)
  24. * Compatible with Microsoft Azure IoT Hub
  25. ### Server (broker)
  26. * List of connected clients available
  27. * Supports connected clients with different protocol versions at the same time
  28. * Able to publish its own messages (no loopback client required)
  29. * Able to receive every message (no loopback client required)
  30. * Extensible client credential validation
  31. * Retained messages are supported including persisting via interface methods (own implementation required)
  32. * WebSockets supported (via ASP.NET Core 2.0)
  33. * A custom message interceptor can be added which allows transforming or extending every received application message
  34. # Supported frameworks
  35. * .NET Standard 1.3+
  36. * .NET Core 1.1+
  37. * .NET Core App 1.1+
  38. * .NET Framework 4.5.2+ (x86, x64, AnyCPU)
  39. * Universal Windows (UWP) 10.0.10240+ (x86, x64, ARM, AnyCPU)
  40. * Mono 5.2+
  41. # Supported MQTT versions
  42. * 3.1.1
  43. * 3.1.0
  44. # Nuget
  45. This library is available as a nuget package: https://www.nuget.org/packages/MQTTnet/
  46. # Examples
  47. Please find examples and the documentation at the Wiki of this repository (https://github.com/chkr1011/MQTTnet/wiki).
  48. # Contributions
  49. If you want to contribute to this project just create a pull request. But only pull requests which are matching the code style of this library will be accepted. Before creating a pull request please have a look at the library to get an overview of the required style.
  50. # References
  51. This library is used in the following projects:
  52. * MQTT Client Rx (Wrapper for Reactive Extensions, https://github.com/1iveowl/MQTTClient.rx)
  53. * Wirehome (Open Source Home Automation system for .NET, https://github.com/chkr1011/Wirehome)
  54. If you use this library and want to see your project here please let me know.
  55. # MIT License
  56. Copyright (c) 2017 Christian Kratky
  57. Permission is hereby granted, free of charge, to any person obtaining a copy
  58. of this software and associated documentation files (the "Software"), to deal
  59. in the Software without restriction, including without limitation the rights
  60. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  61. copies of the Software, and to permit persons to whom the Software is
  62. furnished to do so, subject to the following conditions:
  63. The above copyright notice and this permission notice shall be included in all
  64. copies or substantial portions of the Software.
  65. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  66. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  67. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  68. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  69. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  70. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  71. SOFTWARE.