C API for BALTECH SDK

§ brp_AR_GetMessage()

brp_errcode brp_AR_GetMessage ( brp_protocol  protocol,
brp_MessageType MsgType,
brp_buf MsgData,
size_t *  MsgData_len,
brp_mempool mempool 
)

This command checks if a card has been presented to the reader since the last AR.GetMessage execution. If yes, the card identification will be returned in MsgData. If no, the AR.ErrNoMessage status code will be returned.

Apart from card identifications, some readers support additional types of messages, e.g. PINs entered via the keyboard. This information is returned in MsgType.

Read results are buffered in the reader's memory for 5 seconds, i.e. that's the time frame you have to execute this command.

Parameters
[in]protocolused to execute the command
[out]MsgTypeEvent that triggered the message. It allows the host application to interpret the message content correctly.
[out]MsgDataContent of message (usually an ASCII string)
[out]MsgData_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