← Back to BluetoothEmulation domain

BluetoothEmulation.enable

Enable the BluetoothEmulation domain.

Domain: BluetoothEmulation experimental

Parameters

NameTypeDescription
stateCentralStateState of the simulated central.
leSupportedbooleanIf the simulated central supports low-energy.

Example Request

{
  "id": 1,
  "method": "BluetoothEmulation.enable",
  "params": {
    "state": "state-value",
    "leSupported": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('BluetoothEmulation.enable', {"state": "state-value", "leSupported": true});
console.log(result);