bluez

v0.8.3

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

Архив пакета: https://pubdev.letsnova.ru/api/archives/bluez/0.8.3.tar.gz

Установкаdart pub add bluez

README

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.

История изменений

Changelog

0.8.3

  • Add BlueZAdvertisingManager.
  • Split classes into separate files.
  • Update dbus to 0.7.11.
  • Remove unnecessary loop in example.

0.8.2

  • Add BlueZGattCharacteristic.mtu.

0.8.1

  • Update to dbus 0.7.8

0.8.0

  • Bump version so we can maintain a 0.7 series that has lesser Dart requirement.

0.7.8

  • Add BlueZGattCharacteristic notification support.
  • Add BlueZGattCharacteristic.acquireWrite.
  • Add BlueZClient.registerAgent etc that enables devices to be paired.

0.7.6

  • Update to dbus 0.7

0.7.5

  • Only list as supporting Linux.
  • Fix BlueZUUID hashCode.
  • Make BlueZDevice.adapter non-nullable.

0.7.4

  • Detect BlueZ D-Bus exceptions and provide classes for them.

0.7.3

  • Report all initial adapters and devices on connect.
  • Document where the values of BlueZDevice.appearance are defined.
  • Add an example of how to monitor for events.
  • Add tests for adapter/device property changes.

0.7.2

  • Update to dbus 0.6.

0.7.1

  • Fix detection of removed adapters/devices when they re-appear.
  • Update README about supported platforms.

0.7.0

  • Fix BlueZAdapter.stopDiscovery not working.
  • Refactor BlueZAdapter.setDiscoveryFilter.

0.6.0

  • Reliably detect when an object is removed.
  • Update to dbus 0.5.
  • Rename test file so can just run 'dart test'.

0.5.0

  • Replace setters with methods so they can be async.

0.4.0

  • Update to dbus 0.4.
  • Change names of signal streams to match dbus.dart conventions.
  • Refactor BlueZUUID.
  • Change outputs from Iterable to List so can be easily indexed.
  • Drop GATT prefix on variables inside GATT objects.
  • Fix properties being removed when a D-Bus object is removed.
  • Add regression tests.

0.1.4

  • Bump dbus dependency to avoid another signal subscription bug.

0.1.3

  • Bump dbus dependency to avoid a signal subscription bug.

0.1.2

  • Make the DBusClient parameter optional.
  • Add back default example for pub.dev to show.
  • Fix examples not correctly closing the BlueZClient.
  • Code tidy ups to pass dart analyze in 1.12 final release.

0.1.1

  • Add initial GATT client support.
  • Improve examples.

0.1.0

  • Initial release