BluetoothEmulationDomain

This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.

Official doc

Functions

Link copied to clipboard
suspend fun disable(): DisableResponse

Disable the BluetoothEmulation domain.

Link copied to clipboard
suspend fun enable(state: CentralState): EnableResponse
suspend fun enable(input: EnableRequest): EnableResponse

Enable the BluetoothEmulation domain.

Link copied to clipboard

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

Link copied to clipboard
suspend fun simulatePreconnectedPeripheral(address: String, name: String, manufacturerData: List<ManufacturerData>, knownServiceUuids: List<String>): SimulatePreconnectedPeripheralResponse

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