adrobinoga / pyzatt

Python lib to access ZKTeco's standalone devices
MIT License
105 stars 54 forks source link

test_multiple_realtime.py not working #32

Open carlojune24 opened 3 months ago

carlojune24 commented 3 months ago

Description

I am trying to test the multiple real time device. I modified the code a little bit by just commenting out the continue in loop.

What I Did

ip_addresses = ['192.168.3.50']
for [ip_addr, z] in zk_dev:
        print(ip_addr, z)
        # continue
        # connection
        z.connect_net(ip_addr, machine_port)
        # read user ids
        z.disable_device()
        z.read_all_user_id()
        z.enable_device()

        # enable the report of rt packets
        z.enable_realtime()

misc.print_info("Ready to receive events from the machines")

after modifying above code, this is the result: test

But when I time in in biometrics, no realtime attendance log will appear.