BluetoothEmulation.simulatePreconnectedPeripheral() 方法
🌐 BluetoothEmulation.simulatePreconnectedPeripheral() method
模拟预连接的蓝牙外设。请参阅 bluetooth.simulatePreconnectedPeripheral。
🌐 Simulated preconnected Bluetooth Peripheral. See bluetooth.simulatePreconnectedPeripheral.
语法
🌐 Signature
interface BluetoothEmulation {
simulatePreconnectedPeripheral(
preconnectedPeripheral: PreconnectedPeripheral,
): Promise<void>;
}
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
preconnectedPeripheral | 要模拟的外围设备。 🌐 The peripheral to simulate. |
返回:
Promise<void>