pyzk icon indicating copy to clipboard operation
pyzk copied to clipboard

get_users() function isnt working with WL20 machine

Open Redolvo opened this issue 8 months ago • 2 comments

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):

  • OS: Windows 10 Home
  • Python version 3.10.11

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

Thanks.

Redolvo avatar Jun 15 '24 02:06 Redolvo