RFID_STATUS WINAPI RFID_UpdateSoftwareW ( RFID_HANDLE32  readerManagementHandle,
LPFTPSERVER_INFOW  lpFtpLoginInfo 
)

This function updates the reader firmware software from the FTP/SCP server.

Parameters:
[in] readerManagementHandle 
Handle returned by RFID_Login.
[in] lpFtpLoginInfo 
Pointer to FTPSERVER_INFO which contains the Reader's OSUpdate software.
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 Device-based readers like MC
Remarks:
This function is valid only for Fixed Readers and not Handhelds. The firmware update status can be tracked with RFID_GetUpdateStatus. The readerHandle restarts after the Software update is complete. It is necessary to call RFID_Logout so as to clean up the Dll. To reconnect, call RFID_Login.
See also:
RFID_GetUpdateStatus
Remarks:
Example:
RFID_HANDLE32 readerManagementHandle;
RFID_STATUS rfidStatus = RFID_API_SUCCESS;
LOGIN_INFO loginInfo;
READER_TYPE readerType = XR;
BOOLEAN secureMode=0;
UPDATE_STATUS updateStatus;

_tcscpy(loginInfo.userName, TEXT("admin"));
_tcscpy(loginInfo.password, TEXT("admin"));
_tcscpy(loginInfo.hostName, TEXT("157.235.207.190"));

if(RFID_API_SUCCESS == RFID_Login(&readerManagementHandle,
&loginInfo, readerType, secureMode, NULL))
{
_tcscpy_s(loginInfo.userName, TEXT(""));
_tcscpy_s(loginInfo.password, TEXT(""));
_tcscpy_s(loginInfo.hostName,
TEXT("ftp://157.235.88.198/pub/XR400/TestRelease/Rev_3_3_7"));

rfidStatus = RFID_UpdateSoftware(readerManagementHandle, &loginInfo);
updateStatus.percentage = 0;
while(100 != updateStatus.percentage)
{
updateStatus.percentage=0;
rfidStatus = RFID_GetUpdateStatus(readerManagementHandle, &updateStatus);
if(RFID_RM_NO_UPDATION_IN_PROGRESS == rfidStatus)
break;
Sleep(10000);
}
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