'connect biometrics zkemkeeper using asp mvc?
i hope to all good. So i'm working on Project using ASP.Net MVC by C# language and i want to integrate biometric fingerprint machine"ZKTECO model k30" after searching i found must using the zkemkeeper SDK but the SDK for windows application any ideas for how i can make connect between the machine and my ASP project so i can get the attend logs from the machine with code sample please. by the way the finger print device is connected to the computer by USB
enter code here
Solution 1:[1]
class SurroundingClass
{
private var IsDeviceConnected = false;
private CZKEM objZkeeper = new CZKEM();
private int iMachineNumber;
private void ConnectBiometric()
{
IsDeviceConnected = objZkeeper.Connect_Net(BiometricIP.Text, BiometricPORT.Text);
int idwErrorCode;
if (IsDeviceConnected == true)
{
BiometricStatus.Text = "Current State:Connected";
iMachineNumber = BiometricID.Text;
objZkeeper.RegEvent(iMachineNumber, 65535);
BiometricStatus.ForeColor = Color.Blue;
}
else
{
objZkeeper.GetLastError(idwErrorCode);
BiometricStatus.ForeColor = Color.Red;
BiometricStatus.Text = ("Unable to connect the device,ErrorCode=" + idwErrorCode);
}
}
}
class SurroundingClass { private var IsDeviceConnected = false;
private CZKEM objZkeeper = new CZKEM();
private int iMachineNumber;
private void ConnectBiometric()
{
IsDeviceConnected = objZkeeper.Connect_Net(BiometricIP.Text, BiometricPORT.Text);
int idwErrorCode;
if (IsDeviceConnected == true)
{
BiometricStatus.Text = "Current State:Connected";
iMachineNumber = BiometricID.Text;
objZkeeper.RegEvent(iMachineNumber, 65535);
BiometricStatus.ForeColor = Color.Blue;
}
else
{
objZkeeper.GetLastError(idwErrorCode);
BiometricStatus.ForeColor = Color.Red;
BiometricStatus.Text = ("Unable to connect the device,ErrorCode=" + idwErrorCode);
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | anas ali |
