simulateCharacteristicOperationResponse
suspend fun simulateCharacteristicOperationResponse(args: BluetoothEmulation.SimulateCharacteristicOperationResponseParameter, mode: CommandMode = CommandMode.DEFAULT)
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.
suspend fun simulateCharacteristicOperationResponse(characteristicId: String, type: BluetoothEmulation.CharacteristicOperationType, code: Int, data: String? = null)
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.
Parameters
characteristicId
No description
type
No description
code
No description
data
No description