SoC: mRF54L15, SDK 3.0
SoC: mRF54L15, SDK 3.0
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
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
Thanks.
we have product variation - a product with RFID and another one with Finger print (w/o RFID). So for finger print, it works only if we set the below:
Hi,
The difference in memory when including RFID should be minimal.
The reason you get an error when trying to use fingerprint without RFID is because this has not been instantiated as a template variant:
/* Explicitly instantiate supported template variants to avoid linker errors. */ template class AccessManager<DoorLockData::PIN>; template class AccessManager<DoorLockData::PIN | DoorLockData::RFID>; template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER>; template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER | DoorLockData::VEIN>; template class AccessManager<DoorLockData::PIN | DoorLockData::RFID | DoorLockData::FINGER | DoorLockData::VEIN | DoorLockData::FACE>;
You can try adding it as a template variant:
template class AccessManager<DoorLockData::PIN | DoorLockData::FINGER>;
This needs to be added to access_manager_credentials.cpp, access_manager_schedules.cpp, access_manager_users.cpp, and access_manager.cpp.
Best regards,
Marte