Skip to content
pubscout

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.

WASM-ready
$ flutter pub add bluetooth_low_energy
Source repository

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.1

Alternatives

Packages that do the same job and could replace bluetooth_low_energy.