Overview
Saves an endpoint configuration to an RFID reader, using srfidSaveEndPointConfig.
Details
The saveEndPointConfig method saves an endpoint configuration to an RFID reader using the Zebra RFID SDK. It logs success, handles response errors, failures or timeouts.
-(SRFID_RESULT)saveEndPointConfig:(int)readerID aStatusMessage:(NSString**)statusMessage
{
SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
for(int i = 0; i < 3; i++)
{
srfid_result = [apiInstance srfidSaveEndPointConfig:readerID aStatusMessage:statusMessage];
if ((srfid_result != SRFID_RESULT_RESPONSE_TIMEOUT) && (srfid_result != SRFID_RESULT_FAILURE))
{
break;
}
}
if (srfid_result == SRFID_RESULT_SUCCESS)
{
NSLog(@"save endpoint success");
}
else if(srfid_result == SRFID_RESULT_RESPONSE_ERROR)
{
NSLog(@"save 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;
}