bluetooth_low_energy
6.2.1, released 10 months ago by zeekr.dev
A Flutter plugin for controlling Bluetooth Low Energy, supporting central and peripheral roles.
What it does
Allows Flutter applications to act as both a central and peripheral Bluetooth Low Energy device. Provides comprehensive APIs for device discovery, connecting, reading/writing characteristics and descriptors, and advertising.
AI-written summary of version 6.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a Flutter app that communicates with BLE hardware peripherals.
- Your application needs to act as a BLE peripheral device to broadcast services and data.
- You require cross-platform BLE support across Android, iOS, macOS, Windows, and Linux.
Skip it when
- You are developing and testing on emulators, as BLE does not work without physical hardware.
- You need PeripheralManager support on Linux, which is currently unimplemented because bluez doesn't support it yet.
Strengths
- Supports both central and peripheral roles across multiple desktop and mobile platforms.
- Provides fine-grained control over MTU, RSSI, characteristics, descriptors, and advertising.
Weaknesses
- PeripheralManager API is not implemented on Linux.
- PeripheralManager advertising options have platform-specific limitations on Apple and Windows.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires physical devices for testing. On Android, ensure minSdk is 24 or higher and set up Bluetooth permissions in AndroidManifest.xml. On iOS/macOS, add usage descriptions and configure the app sandbox.
dependencies:
bluetooth_low_energy: ^6.2.1Alternatives
Packages that do the same job and could replace bluetooth_low_energy.
- universal_ble
Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter
92Compare - flutter_blue_plus
Flutter plugin for connecting to Bluetooth Low Energy devices.
90Compare - flutter_reactive_ble
Reactive BLE plugin for Android and iOS that supports multiple devices
86Compare - flutter_splendid_ble
A Flutter plugin for Bluetooth Low Energy (BLE) central interactions.
72Compare