mqtt_helper 1.0.0 mqtt_helper: ^1.0.0 copied to clipboard
mqtt_helper is a Flutter package that simplifies MQTT integration, reducing boilerplate code and providing a convenient layer on top of mqtt_client.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mqtt_helper
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
mqtt_helper: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mqtt_helper/mqtt_helper.dart';