stem_mqtt 0.8.2
stem_mqtt: ^0.8.2 copied to clipboard
MQTT 3.1.1 / 5.0 client and broker with a Rust core (UniFFI bindings): QoS 0/1/2, TLS, WebSocket, shared subscriptions, MQTT 5 enhanced auth. Builds the native library with cargo.
stem_mqtt #
MQTT 3.1.1 / 5.0 client and broker for Dart, with a Rust core, via generated UniFFI bindings.
import 'package:stem_mqtt/mqtt_broker.dart' as broker_api;
import 'package:stem_mqtt/mqtt_client.dart';
- Requires a Rust toolchain (
cargo): the package builds its bundled Rust sources the first time it is used (a native-assets build hook), for the machine running Dart. - Callbacks: Rust cannot call back into Dart from its own threads, so use the pull-style API
(
enableMessageQueue/nextMessage,enableEventQueue/nextEvent) instead of listeners. - The client and broker define their own
QoSenums — import them with a prefix.
Source and issues: https://github.com/sorinirimies/stem-mqtt