Upgrade the firmware. To use this function, you need to obtain corresponding firmware from technical engineers of ZKSoftware.
File name of the firmware to be upgraded (including the path)
Return True if it is successful, or return False.
None
//Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); private void UpdateFirmware(string sIp = "10.0.0.44", int iPort = 4370, int iMachineNumber = 1 , string sFirmwareFile = "C:\\wavres.tgz") { int idwErrorCode = 0; if (axCZKEM1.UpdateFirmware(sFirmwareFile)) { axCZKEM1.RefreshData(iMachineNumber);//the data in the device should be refreshed MessageBox.Show("UpdateFirmware,Name=" + sFirmwareFile, "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM Private Sub UpdateFirmware(Optional ByVal sIp As String = "10.0.0.44", Optional ByVal iPort As Integer = 4370, Optional ByVal iMachineNumber As Integer = 1, Optional ByVal sFirmwareFile As String = "c:\\wavres.tgz") axCZKEM1.Connect_Net(sIp, iPort) Dim idwErrorCode As Integer If axCZKEM1.UpdateFirmware(sFirmwareFile) = True Then axCZKEM1.RefreshData(iMachineNumber) 'the data in the device should be refreshed MsgBox("UpdateFirmware,Name=" + sFirmwareFile, MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If End Sub