mqtt_client 1.3.0 copy "mqtt_client: ^1.3.0" to clipboard
mqtt_client: ^1.3.0 copied to clipboard

outdatedDart 1 only

A server side MQTT client for Dart

mqtt_client #

Build Status

A server side MQTT client for Dart.

The client is an MQTT v3(3.1 and 3.1.1) implementation 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.

An example of usage can be found in the examples directory, this example is runnable. 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 for subscription and publishing.

The client supports both normal and secure TCP connections and server side websocket connections.

The code is a port from the C# nMQTT client library to Dart.