0

Im new using C# and this is my firts project trying to configure an sdk. I'm triying to use this sdk: https://github.com/MuaazH/ZKTeco_PULLSDK_Wrapper, but I don't know how I can use it on my own project. For example, I dont know how I can print all users or something like that.

using i04PullSDK;


AccessPanel ACDevice = new AccessPanel();

// connect
if (!ACDevice.Connect("192.168.1.201", "4370", "1234", 5000))
{
    return; // could not connect
}

// read users
List<User> users = ACDevice.ReadUsers();
if (users == null)
{
    return; // could not read users
}

// open door 1 for 5 seconds
if (!ACDevice.OpenDoor(1, 5))
{
    return; // count not open door
}

With the code below I got this errors

Severity Code Description Project File Line Status Suppressed Error CS0246 The type or namespace name 'i04PullSDK' was not found (are you missing a using directive or an assembly reference?) Tracers

And a few other mistakes.

If you could please send me a video or explain to me by text what I am asking, I would greatly appreciate it.

Pipe
  • 11
  • 2
  • Why are you using a wrapper from a person who speaks very bad about ZKTeco? I recommend not to do so. In order to use the SDK from ZKTeco, you first need to be clear which device supports it. You got Standalone, Pull or Push devices. If you have a Standalone or Pull device, it is super easy to use the SDK. ZKTeco also provides demos for them. Which device do you actually got? – jstuardo Oct 04 '22 at 11:58
  • @jstuardo, You are right. That wrapper is for pull devices only. Also, ZKTeco's demos don't explain what's in the wrapper I made. It's trial & error and some reverse engineering, their docs are always lacking. And I can tell you, just last week I found a bug in the uFace 800 Plus/ID, in the internal SQLite, the insert statement is wrong, it overwrites other bio templates. And the clear user data command does not delete where bio_type = 8. ZKTeco is what you buy if you're on a budget. – MuaazH Jan 12 '23 at 13:04
  • The project compiles fine using `.NET Core` – MuaazH Jan 12 '23 at 13:08
  • @MuaazH maybe the SDK you are working with does not support `bio_type = 8`. There are several SDK's, but note that ZKTeco does not support them anymore. Last SDK version was 6.3.1.37. It supports new generation firmware. Now, you should use `PUSH` protocol directly since all devices are prepared for cloud computing. – jstuardo Jan 13 '23 at 15:55
  • @jstuardo what are you talking about? bio_type = 8 is an internal thing in the device, away from every sdk. This is when ZKTime.Net app or any SDK sends the clear_use_data_cmd to the device. It has nothing to do with the sdk. It's a firmware bug. What I'm saying is, the device itself supports palms (bio type 8) but the device breaks the database integrity by forgeting to delete that type. Email me and I'll send you a copy of a broken SQLite database extracted from the device itself as an example. – MuaazH Jan 13 '23 at 18:03

0 Answers0