Description
mqtt_client is a Dart MQTT client that works in both server and browser apps. It implements MQTT v3, meaning 3.1 and 3.1.1, and supports subscribing and publishing at all QoS levels, keep alive, and a synchronous connection. The client handles the connection protocol and the message exchanges that each QoS level needs, along with keep alive, so you can focus on publishing and subscribing. The server client supports normal and secure TCP connections, and both secure (wss) and non-secure (ws) WebSockets. The browser client supports only WebSockets. The examples directory shows how to connect to the MQTT bridge of Google's IoT Core with secure connections and protocol switching, and the test directory has standalone scripts for subscribing, publishing and topic filtering. The README says the client has been used with brokers from Google IoT Core, Amazon AWS, Microsoft Azure and IBM, and with public brokers such as Mosquitto. The code is a port of the C# nMQTT library. The README also has an installation section for Flutter on Android and iOS.…
Highlights
- MQTT 3.1 and 3.1.1 in Dart
- All QoS levels, keep alive and synchronous connect
- TCP and WebSocket connections
- Examples for Google IoT Core
- Works in server and browser apps
Ratings & Reviews
No ratings yet
Be the first to rate Mqtt Client.
People also visit
Mqtt Client FAQ
What is mqtt_client?
A Dart MQTT client for server and browser apps that implements MQTT 3.1 and 3.1.1.
Does it support MQTT v5?
Not in this package. The README points to an equivalent MQTT v5 client in a separate project.
Which brokers has it been used with?
The README says it has worked with Google IoT Core, Amazon AWS, Microsoft Azure and IBM platforms, and with public brokers such as Mosquitto.
Does it work in browsers?
Yes, but the browser client supports only WebSockets, either secure wss or non-secure ws.
Can I use it in Flutter?
The README has an installation section for Flutter on Android and iOS devices.
What are the best Mqtt Client alternatives?
Popular alternatives to Mqtt Client include MQTT-Tiles, MQTT Web Interface and BunkerM. See all Mqtt Client alternatives



