Open a session to the smart card that's located in the provided smart card reader.
#include <smartcard_spi/SmartCardInterface.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardInterface::attachByReader(const sc_reader_name_t &readerName, sc_card_access_mode_t cardAccessMode, SmartCardSession &session)
BlackBerry 10.3.0
The reader name where the smart card to connect to is located.
The card access mode.
The smart card session.
This function opens a session to the smart card that's located in the provided smart card reader. If the reader is unknown to the smart card subsystem, an error is returned.
If successful, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.