v0.8.3
bluez
提供一個客戶端以連接到 BlueZ - Linux 藍牙堆疊。
42喜歡 19萬近 30 天下載155Pub 分數
Linux
提供一個客戶端,用於連接到 [BlueZ](http://www.bluez.org/) —— Linux 藍牙堆疊。
以下為英文專案原文快照,最新內容請造訪 GitHub。
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();
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.
We welcome contributions! See the contribution guide for more details.