Get Endpoint List

Applicable Devices : RFD40 Premium, RFD40 Premium Plus, RFD90

Overview

Retrieves the endpoint configurations from an RFID reader, using srfidGetEndPointList.

Details

The getEndPointList method retrieves endpoint configurations from an RFID reader using the Zebra RFID SDK. This method handles response errors, failures or timeouts.


-(SRFID_RESULT)getEndPointList:(int)readerID endPointList:(NSMutableArray **)endPointList status:(NSString **)statusMessage
{
        SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;

        for(int i = 0; i < 3; i++)
        {
            srfid_result = [apiInstance srfidGetEndPointList:readerID endPointList:endPointList aStatusMessage:statusMessage];

            if ((srfid_result != SRFID_RESULT_RESPONSE_TIMEOUT) && (srfid_result != SRFID_RESULT_FAILURE))
            {
                break;
            }
        }
        if (srfid_result == SRFID_RESULT_SUCCESS)
        {
            NSLog(@"Get endpoint list success");
        }
        else if(srfid_result == SRFID_RESULT_RESPONSE_ERROR)
        {
            NSLog(@"Get endpoint list SRFID_RESULT_RESPONSE_ERROR");
            // do nothing
        }
        else if(srfid_result == SRFID_RESULT_FAILURE || srfid_result == SRFID_RESULT_RESPONSE_TIMEOUT)
        {
            NSLog(@"Timeout or Failure");
        }

        return srfid_result;
}