bluetooth_serial_ble 0.5.0+1
bluetooth_serial_ble: ^0.5.0+1 copied to clipboard
A basic Flutter Bluetooth Serial library
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bluetooth_serial_bleThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
bluetooth_serial_ble: ^0.5.0+1Alternatively, 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:bluetooth_serial_ble/BluetoothBondState.dart';
import 'package:bluetooth_serial_ble/BluetoothConnection.dart';
import 'package:bluetooth_serial_ble/BluetoothDevice.dart';
import 'package:bluetooth_serial_ble/BluetoothDeviceType.dart';
import 'package:bluetooth_serial_ble/BluetoothDiscoveryResult.dart';
import 'package:bluetooth_serial_ble/BluetoothPairingRequest.dart';
import 'package:bluetooth_serial_ble/BluetoothState.dart';
import 'package:bluetooth_serial_ble/FlutterBluetoothSerial.dart';
import 'package:bluetooth_serial_ble/flutter_bluetooth_serial_ble.dart';