Get Endpoint Configuration

Applicable Devices : RFD40 Premium, RFD40 Premium Plus, RFD90

Overview

Retrieves the configuration of a specific endpoint from an RFID reader, using srfidGetEndpointConfig.

Details

The getEndpointConfig method retrieves a specific endpoint’s configuration from an RFID reader using the Zebra RFID SDK. It logs success, handles response errors, failures or timeouts.


- (SRFID_RESULT)getEndpointConfig:(int)readerID endPointName:(NSString*)endPointName endPointConfig:(srfidGetEndPointConfig **)endPointConfig aStatusMessage:(NSString**)astatusMessage
{

        SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
        for(int i = 0; i < 1; i++)
        {
            srfid_result = [apiInstance srfidGetEndpointConfig:readerID endPointName:endPointName endPointConfig:endPointConfig aStatusMessage:astatusMessage];

            if ((srfid_result != SRFID_RESULT_RESPONSE_TIMEOUT) && (srfid_result != SRFID_RESULT_FAILURE))
            {
                break;
            }
        }

        if (srfid_result == SRFID_RESULT_SUCCESS)
        {
            NSLog(@"Get active endpoint success");
        }
        else if(srfid_result == SRFID_RESULT_RESPONSE_ERROR)
        {

            NSLog(@"Get active endpoint SRFID_RESULT_RESPONSE_ERROR");

        }
        else if(srfid_result == SRFID_RESULT_FAILURE || srfid_result == SRFID_RESULT_RESPONSE_TIMEOUT)
        {

            NSLog(@"Timeout or Failure");

        }
        return srfid_result;

}