sendCommand

abstract suspend fun sendCommand(data: ByteArray): ByteArray

Write a command to the DFU Control Point and wait for the response notification.

Return

the response notification bytes

Parameters

data

raw command bytes (opcode + parameters)

Throws

if no response arrives within the configured timeout