← Back to BluetoothEmulation domain

BluetoothEmulation.simulatePreconnectedPeripheral

Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.

Domain: BluetoothEmulation experimental

Parameters

NameTypeDescription
addressstring
namestring
manufacturerDataarray
knownServiceUuidsarray

Example Request

{
  "id": 1,
  "method": "BluetoothEmulation.simulatePreconnectedPeripheral",
  "params": {
    "address": "address-value",
    "name": "example-name",
    "manufacturerData": [],
    "knownServiceUuids": []
  }
}

Example Response

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

Usage in Node.js

const result = await send('BluetoothEmulation.simulatePreconnectedPeripheral', {"address": "address-value", "name": "example-name", "manufacturerData": [], "knownServiceUuids": []});
console.log(result);