提供一个客户端以连接到 -Linux蓝牙堆栈。 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 }' );