Read the values of specified configuration parameters from the device. The parameters beginning with "~" are skipped.
Parameter name
Value of the parameter described by Aoption.
Return True if it is successful, or return False.
GetSysOption
private static int readOptions(string ipAddr, int port, string options) { int idwErrorCode = 0; //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); if (axCZKEM1.Connect_Net(ipAddr, 4370)) { string value = string.Empty; if (axCZKEM1.ReadAOptions(options, out value)) { MessageBox.Show("Operation Success! Device Parameters " + options + ": " + value); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } } else { axCZKEM1.GetLastError(ref idwErrorCode); } return idwErrorCode; }
Private Sub readAOptions(ipAddr As String, port As Int32, options As String, ByRef value As String) 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM Dim idwErrorCode As Integer If axCZKEM1.Connect_Net(ipAddr, port) = True Then If axCZKEM1.ReadAOptions(options, value) = True Then MsgBox("Operation Success! device Parameter " + options + ": " + value) Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If Else axCZKEM1.GetLastError(idwErrorCode) End If End Sub