flutter_y_ble 1.0.12 copy "flutter_y_ble: ^1.0.12" to clipboard
flutter_y_ble: ^1.0.12 copied to clipboard

A new Flutter Bluetooth plugin.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add flutter_y_ble

With Flutter:

 $ flutter pub add flutter_y_ble

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  flutter_y_ble: ^1.0.12

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_y_ble/ble_bean.dart';
import 'package:flutter_y_ble/ble_connect_result.dart';
import 'package:flutter_y_ble/ble_manager.dart';
import 'package:flutter_y_ble/ble_message.dart';
import 'package:flutter_y_ble/ble_service.dart';
import 'package:flutter_y_ble/ble_write_response.dart';
import 'package:flutter_y_ble/hex_convert_str.dart';