bluez 0.0.0-dev.1 bluez: ^0.0.0-dev.1 copied to clipboard
Provides a client to connect to BlueZ - the Linux Bluetooth stack.
import 'package:dbus/dbus.dart';
import 'package:bluez/bluez.dart';
void main() async {
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();
}