Add Pre-filters (Array)

Applicable Devices : RFD40, RFD90, RFD8500 (RFD8500: up to 4 pre-filters; RFD40 and RFD90: up to 32)

Overview

Applies several pre-filter configurations to the active RFID reader at once, using addPreFilter:aPreFilters:aStatusMessage:.

Details

The addPreFilterByArray: method adds an array of srfidPreFilter objects to the pre-filters of the active RFID reader. The filters are added to the ones already set. Adding the same filter again adds a second copy. The reader holds up to 32 pre-filters.


-(SRFID_RESULT)addPreFilterByArray:(NSMutableArray*)addPrefilterArray {


    SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;

    NSString *status_msg = nil;

    srfid_result = [apiInstance addPreFilter:readerID aPreFilters:addPrefilterArray aStatusMessage:&status_msg];

     if (srfid_result == SRFID_RESULT_SUCCESS) {
         NSLog(@"addPreFilter Success");
     }else{
         NSLog(@"addPreFilter Failed");
     }
    return srfid_result;

}