ZkTeco.Attendance.API
1.0.0
dotnet add package ZkTeco.Attendance.API --version 1.0.0
NuGet\Install-Package ZkTeco.Attendance.API -Version 1.0.0
<PackageReference Include="ZkTeco.Attendance.API" Version="1.0.0" />
paket add ZkTeco.Attendance.API --version 1.0.0
#r "nuget: ZkTeco.Attendance.API, 1.0.0"
// Install ZkTeco.Attendance.API as a Cake Addin #addin nuget:?package=ZkTeco.Attendance.API&version=1.0.0 // Install ZkTeco.Attendance.API as a Cake Tool #tool nuget:?package=ZkTeco.Attendance.API&version=1.0.0
Easy Password Validator
This project was created to provide an easy to use interface to interact with ZKTeco attendance recording devices for .NET.
It allows querying device details, querying user details, querying attendance records, creating users, deleting users, and more.
Getting Started
These instuctions can be used to acquire and implement the library.
Installation
To use this library:
- Clone a copy of the repository
- Reference the NuGet package
Usage
Basic Example
The following example provides a complete use case. This example makes use of the most basic configuration.
var clock = new ZkTeco("192.168.1.1");
if (clock.Connect())
Console.WriteLine("Connected to ZKTeco clock at 192.168.1.1!");
else
Console.WriteLine("Failed...");
Console.WriteLine("Name: " + clock.GetDeviceName() ?? "Uh-oh...");
Console.WriteLine("IP: " + clock.GetDeviceIp() ?? "Uh-oh...");
Console.WriteLine("Subnet: " + clock.GetDeviceSubnetMask() ?? "Uh-oh...");
Console.WriteLine("Gateway: " + clock.GetDeviceGatewayIp() ?? "Uh-oh...");
Console.WriteLine("MAC: " + clock.GetDeviceMac() ?? "Uh-oh...");
Console.WriteLine("Serial: " + clock.GetDeviceSerial() ?? "Uh-oh...");
Console.WriteLine("Firmware: " + clock.GetFirmwareVersion() ?? "Uh-oh...");
Console.WriteLine("Platform: " + clock.GetDevicePlatform() ?? "Uh-oh...");
var details = clock.GetStorageDetails();
if (details != null)
{
Console.WriteLine("Users " + details.Users);
Console.WriteLine("Available Users " + details.AvailableUsers);
Console.WriteLine("Max Users " + details.MaximumUsers);
Console.WriteLine("Records " + details.Records);
Console.WriteLine("Available Records " + details.AvailableRecords);
Console.WriteLine("Max Records " + details.MaximumRecords);
Console.WriteLine("Fingerprints " + details.Fingers);
Console.WriteLine("Available Fingerprints " + details.AvailableFingers);
Console.WriteLine("Max Fingerprints " + details.MaximumFingers);
}
clock.Disconnect();
Authors
- NF Software Inc.
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
Thank you to:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Easy.Base (>= 1.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 98 | 10/29/2024 |
1.0.0
Initial release