getDevice method

Future<BluetoothDevice?> getDevice(
  1. String deviceId
)

根据设备 ID 获取设备信息。

参数:

  • deviceId:设备标识,无默认值。Android 通常是 MAC 地址;Linux 通常是 BlueZ Address 或 DBus object path;Windows 通常是 12 位蓝牙地址或 WinRT DeviceId; iOS/macOS 是 CoreBluetooth peripheral UUID,Web 是浏览器为当前站点生成的设备 ID;通常来自扫描结果。

Implementation

Future<BluetoothDevice?> getDevice(String deviceId) {
  throw UnimplementedError('getDevice() has not been implemented.');
}