connectReader

Return

The connected Reader

Parameters

reader

The reader to connect to

config

Configuration for the connection

See also

Connects to a discovered reader.

Example usage:

try {
val connectedReader = terminal.connectReader(reader, connectionConfiguration)
// Handle successful connection
} catch (e: TerminalException) {
// Handle connection failure
}

Throws

if the connection operation fails