Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calsranna/mqtt_plus
Build a convenient mqtt client, provide emitter and handler to write business code here.
https://github.com/calsranna/mqtt_plus
Last synced: about 1 month ago
JSON representation
Build a convenient mqtt client, provide emitter and handler to write business code here.
- Host: GitHub
- URL: https://github.com/calsranna/mqtt_plus
- Owner: CalsRanna
- License: mit
- Created: 2023-07-11T12:46:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-07T02:46:57.000Z (about 1 year ago)
- Last Synced: 2023-11-07T05:23:12.054Z (about 1 year ago)
- Language: Dart
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Mqtt plus
![Current Version](https://img.shields.io/badge/0.0.4-blue?style=flat-square&label=version)
Build a convenient mqtt client, provide emitter and handler to write business code here.
## Install
```bash
flutter pub add mqtt_plus
```## Getting started
```dart
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');
}```