bluez 0.0.0-dev.2 bluez: ^0.0.0-dev.2 copied to clipboard
Provides a client to connect to BlueZ - the Linux Bluetooth stack.
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.