Skip to main content

Module commands

Structs§

AddCharacteristic
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|. addCharacteristic
AddCharacteristicParams
Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId|. addCharacteristic
AddDescriptor
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. addDescriptor
AddDescriptorParams
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. addDescriptor
AddService
Adds a service with |serviceUuid| to the peripheral with |address|. addService
AddServiceParams
Adds a service with |serviceUuid| to the peripheral with |address|. addService
Disable
Disable the BluetoothEmulation domain. disable
DisableParams
Disable the BluetoothEmulation domain. disable
Enable
Enable the BluetoothEmulation domain. enable
EnableParams
Enable the BluetoothEmulation domain. enable
RemoveCharacteristic
Removes the characteristic respresented by |characteristicId| from the simulated central. removeCharacteristic
RemoveCharacteristicParams
Removes the characteristic respresented by |characteristicId| from the simulated central. removeCharacteristic
RemoveDescriptor
Removes the descriptor with |descriptorId| from the simulated central. removeDescriptor
RemoveDescriptorParams
Removes the descriptor with |descriptorId| from the simulated central. removeDescriptor
RemoveService
Removes the service respresented by |serviceId| from the simulated central. removeService
RemoveServiceParams
Removes the service respresented by |serviceId| from the simulated central. removeService
SetSimulatedCentralState
Set the state of the simulated central. setSimulatedCentralState
SetSimulatedCentralStateParams
Set the state of the simulated central. setSimulatedCentralState
SimulateAdvertisement
Simulates an advertisement packet described in |entry| being received by the central. simulateAdvertisement
SimulateAdvertisementParams
Simulates an advertisement packet described in |entry| being received by the central. simulateAdvertisement
SimulateCharacteristicOperationResponse
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
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
SimulateDescriptorOperationResponse
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
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
SimulateGattDisconnection
Simulates a GATT disconnection from the peripheral with |address|. simulateGATTDisconnection
SimulateGattDisconnectionParams
Simulates a GATT disconnection from the peripheral with |address|. simulateGATTDisconnection
SimulateGattOperationResponse
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
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
SimulatePreconnectedPeripheral
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system. simulatePreconnectedPeripheral
SimulatePreconnectedPeripheralParams
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system. simulatePreconnectedPeripheral

Enums§

AddCharacteristicMethod
AddDescriptorMethod
AddServiceMethod
BluetoothEmulationCommands
DisableMethod
EnableMethod
RemoveCharacteristicMethod
RemoveDescriptorMethod
RemoveServiceMethod
SetSimulatedCentralStateMethod
SimulateAdvertisementMethod
SimulateCharacteristicOperationResponseMethod
SimulateDescriptorOperationResponseMethod
SimulateGattDisconnectionMethod
SimulateGattOperationResponseMethod
SimulatePreconnectedPeripheralMethod