BALTECH SDK wrapper functions reference

§ brp_MobileId_GetVirtualCredentialId()

brp_errcode brp_MobileId_GetVirtualCredentialId ( brp_MobileId_GetVirtualCredentialId_t  params)

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 BRP_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]paramsStruct with the following fields:
  • protocol used to execute the command
  • CredentialId (out) ASCII-encoded value containing the credential ID
  • CredentialId_len (out) Length of CredentialId (in bytes).
  • mempool (in) 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