BluetoothEmulation.emulateAdapter() method
Emulate Bluetooth adapter. Required for bluetooth simulations See bluetooth.simulateAdapter.
Signature
interface BluetoothEmulation {
emulateAdapter(state: AdapterState, leSupported?: boolean): Promise<void>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
state |
The desired bluetooth adapter state. | |
|
leSupported |
boolean |
(Optional) Mark if the adapter supports low-energy bluetooth. |
Returns:
Promise<void>