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