Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.md 4.8 KiB

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