Re-establish a connection to a smart card.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_reconnect(sc_context_t *context,
sc_card_access_mode_t card_access_mode)
BlackBerry 10.2.0
The active smart card context. This value cannot be NULL.
This parameter indicates whether the connection is opened for shared or exclusive access. If the requested mode is unavailable, an error is returned.
For example, you can use this function to change the mode of an existing connection (via the card_access_mode parameter).
To use this function, a connection must have previously been established; otherwise, an error is returned.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.