← Back to BluetoothEmulation domain

BluetoothEmulation.simulateAdvertisement

Simulates an advertisement packet described in |entry| being received by the central.

Domain: BluetoothEmulation experimental

Parameters

NameTypeDescription
entryScanEntry

Example Request

{
  "id": 1,
  "method": "BluetoothEmulation.simulateAdvertisement",
  "params": {
    "entry": "entry-value"
  }
}

Example Response

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

Usage in Node.js

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