stem_mqtt 0.4.2
stem_mqtt: ^0.4.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.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add stem_mqttThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
stem_mqtt: ^0.4.2Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:stem_mqtt/mqtt_broker.dart';
import 'package:stem_mqtt/mqtt_client.dart';
import 'package:stem_mqtt/uniffi_runtime.dart';