Obtain the manufacturing time of the device.
Device number
This parameter can be set to 1 only.
Manufacturing time of the device
Return True if it is successful, or return False.
GetDeviceInfo
/// <summary> /// Get the date of device's manufacture. The function "GetDeviceStrInfo" is different from "GetDeviceInfo". /// </summary> /// <param name="IP"> Ip of device </param> /// <param name="Port"> Port of Device </param> /// <param name="MachineNumber"> Device Number </param> private void GetDeviceStrInfo(string IP = "10.0.0.44", int Port = 4370, int MachineNumber = 1) { //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); axCZKEM1.Connect_Net(IP, Port); int idwErrorCode = 0; int idwInfo = 1; //the only possible value string Value = ""; if (axCZKEM1.GetDeviceStrInfo(MachineNumber, idwInfo, out Value)) { MessageBox.Show("Successfully! The Device string info is=" + Value, "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed, ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
''' <summary> ''' Get the date of device's manufacture ''' The function "GetDeviceStrInfo" is different from "GetDeviceInfo". ''' </summary> ''' <param name="IP"> Ip of device </param> ''' <param name="Port"> Port of Device </param> ''' <param name="MachineNumber"> Device Number </param> Private Sub GetDeviceStrInfo(Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370, Optional MachineNumber As Integer = 1) Dim idwErrorCode As Integer = 0 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM axCZKEM1.Connect_Net(IP, Convert.ToInt32(Port)) Dim idwInfo As Integer = 1 Dim Value As String = "" If axCZKEM1.GetDeviceStrInfo(MachineNumber, idwInfo, Value) = True Then MsgBox("The device string is=" & Value, MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If End Sub