ZKLibrary
ZKLibrary copied to clipboard
Very Long Time Getting Data From Device
I used this library but it was very long time to get data from device (60-90 seconds), I think all many resource in web services would be taken, so All Aplication in same web services waiting for getting data finish.
Could you give me solution ? Thanks u very much
Ok, i got solution for this issue, thanks
@wahib05 what was your solution?
@wahib05 can u share us your solution? I'm also having this kind of long time execution of pulling data from the device
for implementasion i just call:
$zk = new ZKLibrary('172.16.0.201', 4370); $zk->connect(); $zk->getAttendance(); it this only need 1 second to get data in device
I dont call : // $zk->disableDevice(); //$zk->clearAttendance(); //$zk->enableDevice(); //$zk->disconnect(); and other method,
may be device can be handle with that method so long time for execution, regard
@wahib05 I have tried your solution and heck yea.. it is lightning fast... I only commented the disableDevice() & enableDevice() functions...
$zk->disableDevice();
only to prevent user check while application read attendance data and the check is not recorded. When $zk->disableDevice(); called, device will display text "Working..." so user can wait until the process done.
@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?.
Please help me :)
@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?.
Please help me :)
I have zkteco k40 and it's working very well with this clasd
@wombiro Please how did you connect it. I mean get the library working locally
I've zkteco fv18, in localhost it's working but when I test in the server this error is showing (Warning: socket_sendto(): Unable to write to socket [1]: Operation not permitted in /home/irydyuct/jccallcentre.com/emplogin/zk4/zklib/src/Connect.php on line 27) . How to solve this issue
@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?. Please help me :)
I have zkteco k40 and it's working very well with this clasd
I have zkteco k40 but its not working. i have copy this code but not working. ping pong recevied from device. but not working
I've zkteco fv18, in localhost it's working but when I test in the server this error is showing (Warning: socket_sendto(): Unable to write to socket [1]: Operation not permitted in /home/irydyuct/jccallcentre.com/emplogin/zk4/zklib/src/Connect.php on line 27) . How to solve this issue
SAME issue, i think this lib does not work while accessing externally