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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZkTeco.Attendance.API" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZkTeco.Attendance.API --version 1.0.0                
#r "nuget: ZkTeco.Attendance.API, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

MIT NuGet

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:

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:

  • fananimi for the pyzk project and great examples of communications
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 92 10/29/2024

1.0.0
Initial release