transceive

open suspend override fun transceive(command: ByteArray): ByteArray

Sends one command APDU and returns the card's response bytes, including the status word.

PC/SC failures are wrapped in ApduTransportException. A failure reported as a removed card, or a channel that is already disconnected, maps to NfcTagLost.

Return

The response APDU bytes, unchanged.

Since

1.0.0

Parameters

command

Complete command APDU bytes.

Throws

if the card exchange fails.