setPreferredPhy method

  1. @override
Future<void> setPreferredPhy({
  1. required String deviceId,
  2. required BluetoothPhy txPhy,
  3. required BluetoothPhy rxPhy,
  4. int phyOptions = 0,
})
override

实现 FlutterBluetoothPluginPlatform.setPreferredPhy

Web Bluetooth 不支持 PHY 选择。

Implementation

@override
Future<void> setPreferredPhy({
  required String deviceId,
  required BluetoothPhy txPhy,
  required BluetoothPhy rxPhy,
  int phyOptions = 0,
}) {
  throw UnsupportedError('LE PHY APIs are not supported by Web Bluetooth.');
}