Skip to main content

stem_mqtt 0.8.3 copy "stem_mqtt: ^0.8.3" to clipboard
stem_mqtt: ^0.8.3 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 QoS enums — import them with a prefix.

Source and issues: https://github.com/sorinirimies/stem-mqtt

0
likes
0
points
1.01k
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#mqtt #broker #networking #iot

License

unknown (license)

Dependencies

code_assets, ffi, hooks

More

Packages that depend on stem_mqtt