setPreferredPhy method
Future<void>
setPreferredPhy({
- required String deviceId,
- required BluetoothPhy txPhy,
- required BluetoothPhy rxPhy,
- 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.');
}