← Back to BluetoothEmulation domain

BluetoothEmulation.setSimulatedCentralState

Set the state of the simulated central.

Domain: BluetoothEmulation experimental

Parameters

NameTypeDescription
stateCentralStateState of the simulated central.

Example Request

{
  "id": 1,
  "method": "BluetoothEmulation.setSimulatedCentralState",
  "params": {
    "state": "state-value"
  }
}

Example Response

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

Usage in Node.js

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