Bluetooth Emulation Domain
class BluetoothEmulationDomain
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.
Functions
Link copied to clipboard
Disable the BluetoothEmulation domain.
Link copied to clipboard
Enable the BluetoothEmulation domain.
Link copied to clipboard
suspend fun simulateAdvertisement(input: SimulateAdvertisementRequest): SimulateAdvertisementResponse
Simulates an advertisement packet described in |entry| being received by the central.
Link copied to clipboard
suspend fun simulatePreconnectedPeripheral(input: SimulatePreconnectedPeripheralRequest): SimulatePreconnectedPeripheralResponse
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.