BluetoothEmulation.simulatePreconnectedPeripheral() 方法
¥BluetoothEmulation.simulatePreconnectedPeripheral() method
模拟预连接的蓝牙外设。参见 bluetooth.simulatePreconnectedPeripheral。
¥Simulated preconnected Bluetooth Peripheral. See bluetooth.simulatePreconnectedPeripheral.
签名
¥Signature
interface BluetoothEmulation {
simulatePreconnectedPeripheral(
preconnectedPeripheral: PreconnectedPeripheral,
): Promise<void>;
}
参数
¥Parameters
范围 | 类型 | 描述 |
|---|---|---|
preconnectedPeripheral | 要模拟的外围设备。 |
Returns:
Promise<void>