mqtt_plus 0.0.7 mqtt_plus: ^0.0.7 copied to clipboard
Build a convenient mqtt client, provide emitter and handler to write business code here.
Mqtt plus #
Build a convenient mqtt client, provide emitter and handler to write business code here.
Install #
flutter pub add mqtt_plus
Getting started #
import 'package:mqtt_plus/mqtt_plus.dart';
void main() async {
final client = MqttClient(url: 'mqtt://localhost:1883');
await client.connect();
await client.subscribe('/foo/bar');
}