fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
489 stars 319 forks source link

get_users() function isnt working with WL20 machine #215

Open Redolvo opened 2 months ago

Redolvo commented 2 months ago

Describe the bug i try the get_users() function with ZT1800 machine and it work fine, but when i try it with WL20, it sent back 0 users

To Reproduce Steps to reproduce the behavior: just run this with both device and you will get the result from zk import ZK

def get_user_count_zk(ip, port): zk = ZK(ip, port=port, timeout=5, password=0, force_udp=False, ommit_ping=False) try: conn = zk.connect() conn.disable_device() users = conn.get_users() print(f"Number of users (zk): {len(users)}") conn.enable_device() except Exception as e: print(f"Error: {e}") finally: conn.disconnect()

get_user_count_zk('192.168.84.75', 4370)

Expected behavior if it works in ZT1800, im expecting the same result for WL20, which is the amount of user (should be 3 in WL20)

Capture Data Try to always include captured data (pcap files from wireshark (tutorial), and verbose output from test_machine if applicable)

System (please complete the following information):

Additional context i want to syncronize the data from WL20 to ZT1800

Thanks.

ysystech commented 4 weeks ago

Also having this issue. get_attendance function returns an empty list. Did you by any chance solved this issue?

Redolvo commented 4 weeks ago

@ysystech no sorry, i have tried multiple ways but still no success, i kinda drop this project already.