Expand description
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.
Method names for the BluetoothEmulation domain, for use with
CdpClient::call.
This domain is experimental and may change without notice.
Constantsยง
- ADD_
CHARACTERISTIC - Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|.
- ADD_
DESCRIPTOR - Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|.
- ADD_
SERVICE - Adds a service with |serviceUuid| to the peripheral with |address|.
- DISABLE
- Disable the BluetoothEmulation domain.
- ENABLE
- Enable the BluetoothEmulation domain.
- REMOVE_
CHARACTERISTIC - Removes the characteristic respresented by |characteristicId| from the simulated central.
- REMOVE_
DESCRIPTOR - Removes the descriptor with |descriptorId| from the simulated central.
- REMOVE_
SERVICE - Removes the service respresented by |serviceId| from the simulated central.
- SET_
SIMULATED_ CENTRAL_ STATE - Set the state of the simulated central.
- SIMULATE_
ADVERTISEMENT - Simulates an advertisement packet described in |entry| being received by the central.
- SIMULATE_
CHARACTERISTIC_ OPERATION_ RESPONSE - Simulates the response from the characteristic with |characteristicId| for a characteristic operation of |type|. The |code| value follows the Error Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. The |data| is expected to exist when simulating a successful read operation response.
- SIMULATE_
DESCRIPTOR_ OPERATION_ RESPONSE - Simulates the response from the descriptor with |descriptorId| for a descriptor operation of |type|. The |code| value follows the Error Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. The |data| is expected to exist when simulating a successful read operation response.
- SIMULATE_
GATT_ DISCONNECTION - Simulates a GATT disconnection from the peripheral with |address|.
- SIMULATE_
GATT_ OPERATION_ RESPONSE - Simulates the response code from the peripheral with |address| for a GATT operation of |type|. The |code| value follows the HCI Error Codes from Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
- SIMULATE_
PRECONNECTED_ PERIPHERAL - Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.