Search packages, repositories and app categories

Package detailsv0.9.0

bluez

Provides a client to connect to BlueZ - the Linux Bluetooth stack.

Linux
30-day downloads
372K
Likes
45
Pub points
150

Install package

flutter pub add bluez

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The bluez package provides a Dart client for connecting to BlueZ, the official Linux Bluetooth stack. It enables Flutter applications running on Linux to interact with Bluetooth devices, facilitating tasks like discovering nearby devices, establishing connections, and exchanging data. Designed specifically for Linux environments, it integrates seamlessly with the system's native Bluetooth infrastructure. This package is ideal for developers building Linux-native apps that require Bluetooth functionality, such as IoT controllers, peripheral communication tools, or device management utilities.

Use cases

  • Linux-based Bluetooth device discovery
  • Connecting to Bluetooth peripherals
  • IoT device control via Bluetooth
  • Bluetooth data transfer in Linux apps
  • System-level Bluetooth integration

Key features

  • Native BlueZ integration
  • Linux-only platform support
  • Dart-based asynchronous APIs
  • Supports Bluetooth LE and classic Bluetooth
  • Low-level Bluetooth stack access

Suitable for

  • Developers targeting Linux platforms
  • IoT application creators
  • System-level Bluetooth tool builders
  • Linux desktop app developers
  • Bluetooth protocol experimenters

Considerations

  • Limited to Linux operating systems
  • Requires BlueZ daemon running
  • No mobile or Windows support
  • Advanced usage requires Bluetooth knowledge
  • Permissions may need configuration on Linux

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Pub Package codecov

Provides a client to connect to BlueZ - the Linux Bluetooth stack.

import 'package:bluez/bluez.dart';

final client = BlueZClient();
await client.connect();

for (final device in client.devices) {
  print('Device ${device.address} ${device.alias}');
}

await client.close();

Supported platforms

This package is designed for use on Linux, as the BlueZ stack is Linux-specific (other platforms have their own Bluetooth stacks). You can safely include this package when writing applications that work on multiple platforms, but it will fail with an exception when being used if BlueZ is not present.

Contributing to bluez.dart

We welcome contributions! See the contribution guide for more details.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package