flutter_spp_bluetooth_serial 0.1.3
flutter_spp_bluetooth_serial: ^0.1.3 copied to clipboard
Flutter basic implementation for Classical Bluetooth (only RFCOMM for now). Forked and republished as flutter_spp_bluetooth_serial.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_spp_bluetooth_serialWith Flutter:
$ flutter pub add flutter_spp_bluetooth_serialThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
flutter_spp_bluetooth_serial: ^0.1.3Alternatively, 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_spp_bluetooth_serial/BluetoothBondState.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothConnection.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothDevice.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothDeviceType.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothDiscoveryResult.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothPairingRequest.dart';
import 'package:flutter_spp_bluetooth_serial/BluetoothState.dart';
import 'package:flutter_spp_bluetooth_serial/FlutterBluetoothSerial.dart';
import 'package:flutter_spp_bluetooth_serial/flutter_bluetooth_serial.dart';