BluetoothEmulation Domain
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.
Methods
- BluetoothEmulation.disable
- BluetoothEmulation.enable
- BluetoothEmulation.simulateAdvertisement
- BluetoothEmulation.simulatePreconnectedPeripheral
Types
Methods
BluetoothEmulation.enable #
Enable the BluetoothEmulation domain.
Parameters
state
State of the simulated central.
BluetoothEmulation.simulateAdvertisement #
Simulates an advertisement packet described in |entry| being received by the central.
Parameters
entry
BluetoothEmulation.simulatePreconnectedPeripheral #
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.
Parameters
address
string
name
string
manufacturerData
array[ ManufacturerData ]
knownServiceUuids
array[ string
]
Types
BluetoothEmulation.CentralState #
Indicates the various states of Central.
Type: string
Allowed values: absent
, powered-off
, powered-on
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)
BluetoothEmulation.ScanEntry #
Stores the advertisement packet information that is sent by a Bluetooth device.
Type: object
Properties
deviceAddress
string
rssi
integer
scanRecord
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.