kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
194 stars 176 forks source link

Only getUser() is working other functions not working : #66

Open haseebhk22 opened 5 years ago

haseebhk22 commented 5 years ago

My device is connected successfully but only i can get users information other functions like (getAttendance , getSizeUser , getSizeAttendance()) etc not working can someone know what to do ? Here is my code: `<?php include "zklibrary.php"; $zk = new ZKLibrary('192.168.2.200', 4370); $zk->connect();

// $zk->disableDevice(); // $attendance = $zk->getAttendance(); // $size = $zk->getSizeUser(); // echo $size; // $users = $zk->getUser(); // print_r($users);exit(); $test1 = $zk-> getVersion(); print_r($test1);

$zk->enableDevice(); $zk->disconnect();

?> `

tangduongtrieu commented 4 years ago

Me too, getAttendance(); not working, but getUser(); is verry good.

shivaoedit0310 commented 4 years ago

@tangduongtrieu did you manage to solve this issue? I'm having the same problem