Connect to the smart card that's located in the provided smart card reader.
#include <smartcard_spi/SmartCardSession.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardSession::connect(const sc_reader_name_t &deviceName, unsigned int flags, unsigned int preferredProtocols, sc_protocol_t &activeProtocol)=0
BlackBerry 10.3.0
The reader device name holding the card to connect to. The specified device must be a slot-logical device.
The set of protocols that can be used when initializing the connection to the card. Note that only one of the protocols identified in this parameter will be used. If none of the listed protocols is available, then an error is returned.
The actual protocol used in the connection to the smart card, which is populated by this function.
This function opens a connection to the smart card that's located in the provided smart card reader.
If successful, SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.