BluetoothEmulation Domain
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.
Methods
Types
Methods
BluetoothEmulation.disable #
Disable the BluetoothEmulation domain.
BluetoothEmulation.enable #
Enable the BluetoothEmulation domain.
parameters
- state
-
CentralState
State of the simulated central.
BluetoothEmulation.simulateAdvertisement #
Simulates an advertisement packet described in |entry| being received by the central.
parameters
- entry
-
ScanEntry
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.
absent
, powered-off
, powered-on
Type: string
BluetoothEmulation.ManufacturerData #
Stores the manufacturer data
Type: object
properties
- key
- integer
- 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
-
ScanRecord
BluetoothEmulation.ScanRecord #
Stores the byte data of the advertisement packet sent by a Bluetooth device.
Type: object
properties
- name
-
string
- uuids
-
array[ string ]
- appearance
-
integer
Stores the external appearance description of the device.
- txPower
-
integer
Stores the transmission power of a broadcasting device.
- manufacturerData
-
array[ ManufacturerData ]
Key is the company identifier and the value is an array of bytes of manufacturer specific data.