simulateDescriptorOperationResponse
suspend fun simulateDescriptorOperationResponse(args: BluetoothEmulation.SimulateDescriptorOperationResponseParameter, mode: CommandMode = CommandMode.DEFAULT)
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.
suspend fun simulateDescriptorOperationResponse(descriptorId: String, type: BluetoothEmulation.DescriptorOperationType, code: Int, data: String? = null)
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.
Parameters
descriptorId
No description
type
No description
code
No description
data
No description