AccessMGR Credential

SoC: mRF54L15, SDK 3.0

AccessMgr::Instance().SetCredential(credentialIndex, creator, modifier, credentialStatus, credentialTypesecret);
Looking at the above API,  it accepts only kPIN credential Type  for secret. We want to store RFID data and when we try kRFID type, it returns the error.
The Secret is a ByteSpan (16 bytes I believe)  and can you please let me know how we can use it  for RFID? 
Thanks.
Subu
Parents
  • Hi Subu,

    Have you added RFID to the AccessMgr bitmask?
    I assume you are using the lock sample. If that is the case, please try changing this line in bolt_lock_manager.h:

    using AccessMgr = AccessManager<DoorLockData::PIN>;

    to this:

    using AccessMgr = AccessManager<DoorLockData::PIN | DoorLockData::RFID>;

    This should make the AccessManager support both PIN and RFID credentials, and allow you to use SetCredential() with kRFID.

    Best regards,
    Marte

Reply
  • Hi Subu,

    Have you added RFID to the AccessMgr bitmask?
    I assume you are using the lock sample. If that is the case, please try changing this line in bolt_lock_manager.h:

    using AccessMgr = AccessManager<DoorLockData::PIN>;

    to this:

    using AccessMgr = AccessManager<DoorLockData::PIN | DoorLockData::RFID>;

    This should make the AccessManager support both PIN and RFID credentials, and allow you to use SetCredential() with kRFID.

    Best regards,
    Marte

Children
No Data
Related