Click here to Skip to main content
16,022,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I using Zkemkeeper to add new user to my zkteco device with SSR_SetUserInfo() method, it's work, return true. Check this user by SSR_GetUserInfo() with this userID, return true. But when I use SSR_GetAllUserInfo() to get all users but the user not contain in this list who i just added before. I don't know why.


Please help. I spent 3 days with it and without results
Here is my code

C#
public bool PushUserDataToDevice(ZkemClient objZkeeper, int machineNumber, string enrollNo)
{
    string userName = "vuongtesttt";
    string password = "123";
    bool enable = true;
    int privelage = 1;
    objZkeeper.EnableDevice(machineNumber, false);
    bool check = objZkeeper.SSR_SetUserInfo(machineNumber, enrollNo, userName, password, privelage, true);
    if (check)
    {
        objZkeeper.RefreshData(machineNumber);
        bool checkContain = objZkeeper.SSR_GetUserInfo(machineNumber, enrollNo, out userName, out password, out privelage, out enable);
        objZkeeper.EnableDevice(machineNumber, true);
        if (checkContain) return checkContain;
    }
    return false;
}


What I have tried:

Is push up with SDK acceptable? Do you have any solution?
Posted
Updated 30-May-24 22:26pm
v2

1 solution

Unfortunately, we aren't going to be able to help you here. Your likeliest source of help will be the support forums for wherever you got this DLL from. When you reach out there, remember that they cannot see your code so you will need to provide a lot more detail than you have here. The question you posed here is the equivalent of writing the following on Facebook:

Please help. I got in a vehicle this morning. I successfully sat down. The vehicle isn't moving.

Hopefully you can see that, while you know exactly what you meant, there's not enough context there for anyone else to work out what you meant. At best, you'll get guesses. We're busy trying to figure out why your car won't start, while you're sitting in a tank staring at buttons.

This is a valuable opportunity to learn. When asking a question, accept that your audience may not have the same level of understanding as you and try to provide as much information as possible. It's better to provide too much than not enough.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900