C API for BALTECH SDK

§ brp_Mce_Request()

brp_errcode brp_Mce_Request ( brp_protocol  protocol,
brp_buf Snr,
size_t *  Snr_len,
brp_mempool mempool 
)

This command is used to check if a Mobile Card Emulation (MCE) device (usually a smartphone running a particular app) is currently presented to the reader. As long as an MCE device is detected, the command returns the serial number that has been transferred from the device to the reader.

If no MCE device is detected, the status code Mce.ErrNoTag will be returned. In case MCE is not enabled on the reader, Mce.ErrDisabled will be returned.

Parameters
[in]protocolused to execute the command
[out]SnrEmulated serial number
[out]Snr_len
[in]mempoolis 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