bluetooth_low_energy 1.0.0 icon indicating copy to clipboard operation
bluetooth_low_energy: ^1.0.0 copied to clipboard

A bluetooth low energy plugin for flutter, which can be used to develope central role apps.

bluetooth_low_energy #

A bluetooth low energy plugin for flutter, which can be used to develope central role apps.

Features #

Central APIs #

  • [x] Scan advertisements.
  • [x] Connect/Disconnect to peripherals.
  • [x] Read/Write/Notify characteristics.
  • [x] Read/Write descriptors.

Peripheral APIs #

  • [ ] Add/Send advertisements.
  • [ ] Add services
  • [ ] Add/Listen/Write characteristics
  • [ ] Add/Listen/Write descriptors.
  • [ ] Listen GATT connect/disconnect events.

Getting Started #

Add bluetooth_low_energy as a dependency in your pubspec.yaml file.

dependencies:
  bluetooth_low_energy: ^<latest-version>

Note: Bluetooth Low Energy doesn't work on Android emulators, so use physical devices which has bluetooth features for development.

Android #

Make sure you have a miniSdkVersion with 21 or higher in your android/app/build.gradle file.

iOS #

Make sure you have a minimum deployment target of 9.0 or above, you can uncomment the first line platform :ios, '9.0' in your iOS project's Podfile.

Note: According to Apple's documents, you must include the NSBluetoothAlwaysUsageDescription on or after iOS 13, and include the NSBluetoothPeripheralUsageDescription key before iOS 13.

Issues #

  • Peripheral APIs are not implemented yet.
4
likes
120
pub points
52%
popularity

Publisher

verified publisher iconyanshouwang.dev

A bluetooth low energy plugin for flutter, which can be used to develope central role apps.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

fixnum, flutter, pigeon, plugin_platform_interface, protobuf, tuple

More

Packages that depend on bluetooth_low_energy