BluetoothEmulation.enableEnable the BluetoothEmulation domain.
| Name | Type | Description |
|---|---|---|
state | CentralState | State of the simulated central. |
leSupported | boolean | If the simulated central supports low-energy. |
{
"id": 1,
"method": "BluetoothEmulation.enable",
"params": {
"state": "state-value",
"leSupported": true
}
}
{
"id": 1,
"result": {}
}
const result = await send('BluetoothEmulation.enable', {"state": "state-value", "leSupported": true});
console.log(result);