flutter_ble_peripheral 1.2.6 flutter_ble_peripheral: ^1.2.6 copied to clipboard
This plugin enables a device to be set into peripheral mode, and advertise custom services and characteristics.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_ble_peripheral
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_ble_peripheral: ^1.2.6
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:flutter_ble_peripheral/flutter_ble_peripheral.dart';