moyoung_ble_plugin 0.0.5 moyoung_ble_plugin: ^0.0.5 copied to clipboard
A Flutter plugin for communicating with the watch. Includes the following features: Scan BLE device,Connect,Time,Firmware,Battery,User Info,Weather,Steps,Sleep,Unit system,Quick view, Goal steps,Watch [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add moyoung_ble_plugin
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
moyoung_ble_plugin: ^0.0.5
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:moyoung_ble_plugin/impl/channel_names.dart';
import 'package:moyoung_ble_plugin/impl/event_streams.dart';
import 'package:moyoung_ble_plugin/impl/moyoung_beans.dart';
import 'package:moyoung_ble_plugin/impl/moyoung_ble_impl.dart';
import 'package:moyoung_ble_plugin/impl/moyoung_contants.dart';
import 'package:moyoung_ble_plugin/moyoung_ble.dart';