Methods

Chrome DevTools

BluetoothEmulation.disable #

Disable the BluetoothEmulation domain.


Chrome DevTools

BluetoothEmulation.enable #

Enable the BluetoothEmulation domain.

Parameters

state
CentralState

State of the simulated central.


Chrome DevTools

BluetoothEmulation.simulateAdvertisement #

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

Parameters

entry

Chrome DevTools

BluetoothEmulation.simulatePreconnectedPeripheral #

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

Parameters

address
string
name
string
manufacturerData
knownServiceUuids
array[ string ]

Types

Chrome DevTools

BluetoothEmulation.CentralState #

Indicates the various states of Central.

Type: string

Allowed values: absent, powered-off, powered-on


Chrome DevTools

BluetoothEmulation.ManufacturerData #

Stores the manufacturer data

Type: object

Properties

key
integer

Company identifier https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml https://usb.org/developers

data
string

Manufacturer-specific data (Encoded as a base64 string when passed over JSON)


Chrome DevTools

BluetoothEmulation.ScanEntry #

Stores the advertisement packet information that is sent by a Bluetooth device.

Type: object

Properties

deviceAddress
string
rssi
integer
scanRecord

Chrome DevTools

BluetoothEmulation.ScanRecord #

Stores the byte data of the advertisement packet sent by a Bluetooth device.

Type: object

Properties

name
Optional
string
uuids
Optional
array[ string ]
appearance
Optional
integer

Stores the external appearance description of the device.

txPower
Optional
integer

Stores the transmission power of a broadcasting device.

manufacturerData
Optional
array[ ManufacturerData ]

Key is the company identifier and the value is an array of bytes of manufacturer specific data.