C API for BALTECH SDK

§ brp_MobileId_GetVirtualCredentialId()

brp_errcode brp_MobileId_GetVirtualCredentialId ( brp_protocol  protocol,
brp_buf CredentialId,
size_t *  CredentialId_len,
brp_mempool mempool 
)

This command checks if a Mobile ID credential has been presented to the reader since the last MobileId.GetVirtualCredentialId execution.

  • If a valid credential is detected, the credential identification will be returned in CredentialId.
  • If no credential is detected, the MobileId.ErrNoCredential status code will be returned.
  • If an invalid credential is detected, one of the other status codes will be returned.

If you use Autoread, runAR.GetMessage instead of this command to retrieve the ID of a presented credential.

Parameters
[in]protocolused to execute the command
[out]CredentialIdASCII-encoded value containing the credential ID
[out]CredentialId_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