RFID_STATUS WINAPI RFID_UpdateRadioFirmwareW ( RFID_HANDLE32  readerManagementHandle,
TCHAR *  pFileName 
)

This function updates the radio firmware.

Parameters:
[in] readerManagementHandle 
Handle returned by RFID_Login.
[in] pFileName 
String containing the name of firmware update file.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_READER_FUNCTION_UNSUPPORTED Unsupported on host-based readers like XR, FX
Remarks:
This function is valid only for Handheld Readers. As the radio would restart after the update, it is required to call RFID_Logout to clean up the Dll's existing connection and call RFID_Login again to get a valid Handle.
See also:
Remarks:
Example:
RFID_HANDLE32 readerManagementHandle, readerHandle;
RFID_STATUS rfidStatus;
UPDATE_STATUS UpdateStatus;
rfidStatus = RFID_Login(&readerManagementHandle, NULL, MC, false, NULL);
if(rfidStatus == RFID_API_SUCCESS)
{
rfidStatus = RFID_UpdateRadioFirmware(readerManagementHandle, L"sailfish.0.2.41.a79");
if(rfidStatus == RFID_API_SUCCESS)
{
do
{
Sleep(1000);
rfidStatus = RFID_GetUpdateStatus(readerManagementHandle, &UpdateStatus);
if(rfidStatus == RFID_RM_NO_UPDATION_IN_PROGRESS)
break;
}while(UpdateStatus.percentage != 100);
RFID_Logout(readerManagementHandle); // Logout so that Dll is cleaned up
}
}


Generated on Fri Mar 4 02:25:31 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6