Overview
Retrieves the software versions of the components of an active RFID reader, using srfidGetReaderVersionInfo.
Details
The SDK provides an ability to retrieve information about software versions of various components of a particular active RFID reader. Software version related information could be retrieved via srfidGetReaderVersionInfo API function as demonstrated in the following example.
-(void)getReaderInformation {
/* identifier of one of active RFID readers is supposed to be stored in readerID variable */
/* allocate object for storage of version related information */
srfidReaderVersionInfo *version_info = [[srfidReaderVersionInfo alloc] init];
/* an object for storage of error response received from RFID reader */
NSString *error_response = nil;
/* retrieve version related information */
SRFID_RESULT result = [apiInstance srfidGetReaderVersionInfo:readerID aReaderVersionInfo:&version_info aStatusMessage:&error_response];
if ((result == SRFID_RESULT_RESPONSE_TIMEOUT) || (result == SRFID_RESULT_FAILURE)) {
NSLog(@"Time out or Failure");
}
if (SRFID_RESULT_SUCCESS == result) {
/* print the received version related information */
NSLog(@"Device version: %@\n", [version_info getDeviceVersion]);
NSLog(@"NGE version: %@\n", [version_info getNGEVersion]);
NSLog(@"Bluetooth version: %@\n", [version_info getBluetoothVersion]);
textView_reader_information.text = [NSString stringWithFormat:@"Firmware version: %@\n NGE version: %@\n Bluetooth version: %@\n", [version_info getDeviceVersion], [version_info getNGEVersion], [version_info getBluetoothVersion]];
}
if (SRFID_RESULT_READER_NOT_AVAILABLE == result) {
NSLog(@"RFID reader is not available\n");
textView_reader_information.text = @"RFID reader not available";
}
}