BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_VHL_GetSnr | ( | brp_protocol | protocol, |
brp_buf * | Snr, | ||
size_t * | Snr_len, | ||
brp_mempool * | mempool | ||
) |
This command returns the serial number (UID) of the currently selected card.
The UID is the number sent when the card is selected; this may also be a random ID.
If brp_VHL_Select() hasn't been executed successfully before, the reader will return BRP_VHL_ErrCardNotSelected. If the last selected card is no longer available in the antenna field, or a read/write operation failed previous to this command, the returned serial number is undefined.
Don't make security-critical decisions by only examining the card's serial number.
[in] | protocol | used to execute the command |
[out] | Snr | Serial number (UID) of the card. The length of this field depends on the selected card type. |
[out] | Snr_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |