Overview
Sets an attribute of the RFID reader, such as the reader off mode timeout, using srfidSetAttribute.
Details
Reader off mode timeout parameter: byte parameter number 1765, default 30 minutes (default value 29 = 0x1D, which means 30 minutes).
#pragma mark - Methods - Set Offline timeout attribute
-(void)setAttributes {
srfidAttribute *attributeDet =[[srfidAttribute alloc]init];
[attributeDet setAttrNum:1765];
[attributeDet setAttrType:@"B"];
[attributeDet setAttrVal:@"10"];
/* set the attribute */
SRFID_RESULT result = [apiInstance srfidSetAttribute:readerID aAttrInfo:attributeDet aStatusMessage:nil];
if (SRFID_RESULT_SUCCESS == result) {
NSLog(@"Set attributes Success");
}
else {
NSLog(@"Failed to set attribute");
}
}