flutter_spp_bluetooth_serial 0.1.5
flutter_spp_bluetooth_serial: ^0.1.5 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 Flutter:
$ flutter pub add flutter_spp_bluetooth_serialThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flutter_spp_bluetooth_serial: ^0.1.5Alternatively, 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_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';