Skip to main content
Version: 24.38.0

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>