SSR_GetUnlockGroup

Definition

Usage

Obtain the open door combination by open door combination number.

Parameter

Device number

Combination number. The value ranges from 1 to 10.

Specific combinations of specified open door groups, that is, which groups are contained in a combination. The group number is returned. Each combination contains a maximum of five groups. Each group number ranges from 1 to 99.

Return Value

Return True if it is successful, or return False.

Related Function

SSR_SetUnLockGroup

 

Ejemplo

C#

//Create Standalone SDK class dynamicly.
zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
int iMachineNumber = 1;
axCZKEM1.Connect_Net("10.0.0.43", 4370);


int idwErrorCode = 0;

int iComNo = 1;
int iGroup1 = 0;
int iGroup2 = 0;
int iGroup3 = 0;
int iGroup4 = 0;
int iGroup5 = 0;

if (axCZKEM1.SSR_GetUnLockGroup(iMachineNumber, iComNo, ref iGroup1, ref iGroup2, ref iGroup3, ref iGroup4, ref iGroup5))
{
    MessageBox.Show("Group1 " + iGroup1.ToString() +
    "| Group2" + iGroup2.ToString() +
    "| Group3 " + iGroup3.ToString() +
    "| Group4 " + iGroup4.ToString() +
    "| Group5 " + iGroup5.ToString());
}
else
{
    axCZKEM1.GetLastError(ref idwErrorCode);
    MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
}

VB

'Create Standalone SDK class dynamicly.
Dim axCZKEM1 As New zkemkeeper.CZKEM
Dim iMachineNumber As Integer

axCZKEM1.Connect_Net("10.0.0.43", 4370)


Dim idwErrorCode As Integer

Dim iComNo As Integer = 1
Dim iGroup1 As Integer
Dim iGroup2 As Integer
Dim iGroup3 As Integer
Dim iGroup4 As Integer
Dim iGroup5 As Integer

If axCZKEM1.SSR_GetUnLockGroup(iMachineNumber, iComNo, iGroup1, iGroup2, iGroup3, iGroup4, iGroup5) = True Then
    axCZKEM1.RefreshData(iMachineNumber) 'the data in the device should be refreshed
    MsgBox("SetUnlockGroups, Groups:" + iGroup1.ToString() + ":" + iGroup2.ToString() + ":" + iGroup3.ToString() + ":" + iGroup4.ToString() + ":" + iGroup5.ToString(), MsgBoxStyle.Information, "Success")
Else
    axCZKEM1.GetLastError(idwErrorCode)
    MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error")
End If