robert-ancell / bluez.dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pub Package

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

import 'package:dbus/dbus.dart';
import 'package:bluez/bluez.dart';

var systemBus = DBusClient.system();
var client = BlueZClient(systemBus);
await client.connect();

print('Devices:');
for (var device in client.devices) {
  print('  ${device.name}');
}

await systemBus.close();

Contributing to bluez.dart

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

About

License:Mozilla Public License 2.0


Languages

Language:Dart 100.0%