Lock

Applicable Devices : RFD40, RFD90, RFD8500

Overview

Sets the access permission of a memory bank of a tag, using srfidLockTag.

Details

The srfidLockTag API function applies an SRFID_ACCESSPERMISSION value, described on the Access Operations Overview page, to the memory bank given in memoryBank of the tag specified by its tag ID (the EPC, as a hexadecimal string). The password is the tag's access password.

Warning: the permanent permissions, SRFID_ACCESSPERMISSION_ACCESSIBLE_PERM and SRFID_ACCESSPERMISSION_ALWAYS_NOT_ACCESSIBLE, cannot be changed afterwards.


- (SRFID_RESULT)lockTag:(NSString *)tagID withTagData:(srfidTagData **)tagData memoryBank:(SRFID_MEMORYBANK)memoryBank accessPermissions:(SRFID_ACCESSPERMISSION)accessPermissions withPassword:(long)password aStatusMessage:(NSString**)statusMessage
{
    if (apiInstance != nil)
    {
        return [apiInstance srfidLockTag: readerID  aTagID:tagID aAccessTagData:tagData aMemoryBank:memoryBank aAccessPermissions:accessPermissions aPassword:password aStatusMessage:statusMessage];
    }

    return SRFID_RESULT_FAILURE;
}