mqtt_client
dart 

所属分类:Dart语言编程
开发工具:Dart
文件大小:422KB
下载次数:0
上传日期:2023-05-28 10:57:39
上 传 者sh-1993
说明:  用于dart的基于服务器和浏览器的MQTT客户端
(A server and browser based MQTT client for dart)

文件列表:
AUTHORS.md (230, 2023-05-28)
CHANGELOG.md (4482, 2023-05-28)
LICENSE (2734, 2023-05-28)
analysis_options.yaml (410, 2023-05-28)
example (0, 2023-05-28)
example\aws_iot_certificates.dart (3789, 2023-05-28)
example\aws_iot_cognito.dart (7859, 2023-05-28)
example\example.md (497, 2023-05-28)
example\google_iot_core.dart (5104, 2023-05-28)
example\mqtt_browser_client.dart (7656, 2023-05-28)
example\mqtt_client_publish_qos1.dart (4177, 2023-05-28)
example\mqtt_client_publish_qos1_manually_acknowledge.dart (5419, 2023-05-28)
example\mqtt_client_publish_qos2.dart (3796, 2023-05-28)
example\mqtt_client_universal.dart (793, 2023-05-28)
example\mqtt_client_wildcard.dart (5427, 2023-05-28)
example\mqtt_client_wildcard_filtered.dart (5496, 2023-05-28)
example\mqtt_server_client.dart (8654, 2023-05-28)
example\mqtt_server_client_autoreconnect.dart (9051, 2023-05-28)
example\mqtt_server_client_keep_alive_disconnect.dart (8716, 2023-05-28)
example\mqtt_server_client_keep_alive_disconnect_with_autoreconnect.dart (9017, 2023-05-28)
example\mqtt_server_client_secure.dart (7773, 2023-05-28)
example\mqtt_server_client_websocket.dart (7956, 2023-05-28)
example\mqtt_server_client_websocket_secure.dart (8070, 2023-05-28)
example\pem (0, 2023-05-28)
example\pem\mosquitto.org.crt (1078, 2023-05-28)
example\pem\roots.pem (117084, 2023-05-28)
lib (0, 2023-05-28)
lib\mqtt_browser_client.dart (762, 2023-05-28)
lib\mqtt_client.dart (5501, 2023-05-28)
lib\mqtt_server_client.dart (1094, 2023-05-28)
lib\src (0, 2023-05-28)
lib\src\connectionhandling (0, 2023-05-28)
... ...

# mqtt_client [![Build Status](https://github.com/shamblett/mqtt_client/actions/workflows/ci.yml/badge.svg)](https://github.com/shamblett/mqtt_client/actions/workflows/ci.yml) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fshamblett%2Fmqtt_client.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fshamblett%2Fmqtt_client?ref=badge_shield) A server and browser based MQTT client for Dart. The client is an MQTT v3(3.1 and 3.1.1) implementation(an equivalent MQTT v5 client can be found [here](https://pub.dev/packages/mqtt5_client)) supporting subscription/publishing at all QOS levels, keep alive and synchronous connection. The client is designed to take as much MQTT protocol work off the user as possible, connection protocol is handled automatically as are the message exchanges needed to support the different QOS levels and the keep alive mechanism. This allows the user to concentrate on publishing/subscribing and not the details of MQTT itself. Examples of usage can be found in the examples directory. An example is also provided showing how to use the client to connect to the mqtt-bridge of Google's IoT-Core suite. This demonstrates how to use secure connections and switch MQTT protocols. The test directory also contains standalone runnable scripts demonstrating subscription, publishing and topic filtering. The server client supports both normal and secure TCP connections and secure(wss) and non-secure(ws) websocket connections. The browser client supports only secure(wss) and non-secure(ws) websocket connections. The client has been used successfully with the MQTT brokers from several of the major cloud providers IOT/MQTT platforms, including :- * Google IOT Core * Amazon AWS * Microsoft Azure * IBM It has also been used with a range of both publicly available brokers such as Mosquitto and proprietary ones. An example using the adafruit MQTT broker for flutter can be found [here](https://github.com/BitKnitting/flutter_adafruit_mqtt). The code is originally a port from the C# [nMQTT](https://www.openhub.net/p/nMQTT) client library to Dart. Please read the changelog for details related to specific versions. ## Installation If you are using the client in a flutter environment on Android or iOS devices then the following device permission settings are necessary. ### iOS Add the following keys to your **Info.plist** file, located in **ios/Runner/Info.plist**: ``` NSLocalNetworkUsageDescription Looking for local tcp Bonjour service NSBonjourServices mqtt.tcp ``` ### Android Add the following Android permissions to the **AndroidManifest.xml** file, located in **android/app/src/main/AndroidManifest.xml**: ``` ``` ## License [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fshamblett%2Fmqtt_client.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fshamblett%2Fmqtt_client?ref=badge_large)

近期下载者

相关文件


收藏者