transmitApdu

actual fun transmitApdu(commandApdu: ByteArray): ByteArray
expect fun transmitApdu(commandApdu: ByteArray): ByteArray

Transmits an Application Protocol Data Unit (APDU) command to the smart card and receives the response.

Return

The response APDU received from the smart card.

Since

1.0.0

Parameters

commandApdu

The command APDU to be transmitted.

Throws

ReaderIOException

If an I/O error occurs while communicating with the reader.

CardIOException

If an I/O error occurs while communicating with the card.

actual fun transmitApdu(commandApdu: ByteArray): ByteArray
actual fun transmitApdu(commandApdu: ByteArray): ByteArray