Module bluetooth_emulation

Module bluetooth_emulation 

Source
Expand description

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

Structs§

AddCharacteristicParams
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|. addCharacteristic
AddCharacteristicParamsBuilder
AddCharacteristicReturns
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|. addCharacteristic
AddCharacteristicReturnsBuilder
AddDescriptorParams
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. addDescriptor
AddDescriptorParamsBuilder
AddDescriptorReturns
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. addDescriptor
AddDescriptorReturnsBuilder
AddServiceParams
Adds a service with |serviceUuid| to the peripheral with |address|. addService
AddServiceParamsBuilder
AddServiceReturns
Adds a service with |serviceUuid| to the peripheral with |address|. addService
AddServiceReturnsBuilder
CharacteristicProperties
Describes the properties of a characteristic. This follows Bluetooth Core Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties. CharacteristicProperties
CharacteristicPropertiesBuilder
DisableParams
Disable the BluetoothEmulation domain. disable
DisableReturns
Disable the BluetoothEmulation domain. disable
EnableParams
Enable the BluetoothEmulation domain. enable
EnableParamsBuilder
EnableReturns
Enable the BluetoothEmulation domain. enable
EventCharacteristicOperationReceived
Event for when a characteristic operation of |type| to the characteristic respresented by |characteristicId| happened. |data| and |writeType| is expected to exist when |type| is write. characteristicOperationReceived
EventDescriptorOperationReceived
Event for when a descriptor operation of |type| to the descriptor respresented by |descriptorId| happened. |data| is expected to exist when |type| is write. descriptorOperationReceived
EventGattOperationReceived
Event for when a GATT operation of |type| to the peripheral with |address| happened. gattOperationReceived
ManufacturerData
Stores the manufacturer data ManufacturerData
ManufacturerDataBuilder
RemoveCharacteristicParams
Removes the characteristic respresented by |characteristicId| from the simulated central. removeCharacteristic
RemoveCharacteristicParamsBuilder
RemoveCharacteristicReturns
Removes the characteristic respresented by |characteristicId| from the simulated central. removeCharacteristic
RemoveDescriptorParams
Removes the descriptor with |descriptorId| from the simulated central. removeDescriptor
RemoveDescriptorParamsBuilder
RemoveDescriptorReturns
Removes the descriptor with |descriptorId| from the simulated central. removeDescriptor
RemoveServiceParams
Removes the service respresented by |serviceId| from the simulated central. removeService
RemoveServiceParamsBuilder
RemoveServiceReturns
Removes the service respresented by |serviceId| from the simulated central. removeService
ScanEntry
Stores the advertisement packet information that is sent by a Bluetooth device. ScanEntry
ScanEntryBuilder
ScanRecord
Stores the byte data of the advertisement packet sent by a Bluetooth device. ScanRecord
ScanRecordBuilder
SetSimulatedCentralStateParams
Set the state of the simulated central. setSimulatedCentralState
SetSimulatedCentralStateParamsBuilder
SetSimulatedCentralStateReturns
Set the state of the simulated central. setSimulatedCentralState
SimulateAdvertisementParams
Simulates an advertisement packet described in |entry| being received by the central. simulateAdvertisement
SimulateAdvertisementParamsBuilder
SimulateAdvertisementReturns
Simulates an advertisement packet described in |entry| being received by the central. simulateAdvertisement
SimulateCharacteristicOperationResponseParams
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. simulateCharacteristicOperationResponse
SimulateCharacteristicOperationResponseParamsBuilder
SimulateCharacteristicOperationResponseReturns
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. simulateCharacteristicOperationResponse
SimulateDescriptorOperationResponseParams
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. simulateDescriptorOperationResponse
SimulateDescriptorOperationResponseParamsBuilder
SimulateDescriptorOperationResponseReturns
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. simulateDescriptorOperationResponse
SimulateGattDisconnectionParams
Simulates a GATT disconnection from the peripheral with |address|. simulateGATTDisconnection
SimulateGattDisconnectionParamsBuilder
SimulateGattDisconnectionReturns
Simulates a GATT disconnection from the peripheral with |address|. simulateGATTDisconnection
SimulateGattOperationResponseParams
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. simulateGATTOperationResponse
SimulateGattOperationResponseParamsBuilder
SimulateGattOperationResponseReturns
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. simulateGATTOperationResponse
SimulatePreconnectedPeripheralParams
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system. simulatePreconnectedPeripheral
SimulatePreconnectedPeripheralParamsBuilder
SimulatePreconnectedPeripheralReturns
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system. simulatePreconnectedPeripheral

Enums§

CentralState
Indicates the various states of Central.
CharacteristicOperationType
Indicates the various types of characteristic operation.
CharacteristicWriteType
Indicates the various types of characteristic write.
DescriptorOperationType
Indicates the various types of descriptor operation.
GattOperationType
Indicates the various types of GATT event.