SmartCardInterface::reconnect()

Re-establish an existing connection to a smart card.

Synopsis:

#include <smartcard_spi/SmartCardInterface.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardInterface::reconnect(sc_card_access_mode_t cardAccessMode)

Since:

BlackBerry 10.3.0

Arguments:

cardAccessMode

The card access mode.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

This function re-establishes an existing connection to a smart card. Example uses of this function include:

  • Changing the mode of an existing connection (using the cardAccessMode parameter).

Note that a connection must have previously been established, otherwise an error is returned.

Returns:

If successful, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.