fananimi / pyzk

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

how to Disable the door from openning until enabling it again ? #191

Closed ASalem404 closed 1 year ago

kurenai-ryu commented 1 year ago

it's not possible with the current implementation,

If you manage to enable/disable the door lock from ZKACCESS, please capture the wireshark packets for both enabling and another one for disabling the lock.

or make a PR for that

ASalem404 commented 1 year ago

So, What did the CMD_DISABLEDEVICE command do ??

kurenai-ryu commented 1 year ago

it's used before attempting to communicate with the device, to stop receiving fingerprints, once your data transfer is complete, you should re enable the the device to continue normal operation.

in retrospective, it can be used to keep locked the door, but just take in mind that it's not the intended functionality