sdnzak / ZkLib-PHP

Communication between PHP language and ZK Time Attendance Devices (RFID, fingerprint, etc.).
GNU General Public License v3.0
21 stars 12 forks source link

Responce always fail #1

Closed Dmo3 closed 7 years ago

Dmo3 commented 7 years ago

Hi ,

The result always fail for the most functions ,only getDate is return informations .

$host = "192.168.1.5";
$zklib = new ZkLib($host);
print_r( $zklib->unlock() );

SimpleXMLElement Object ( [Row] => SimpleXMLElement Object ( [Result] => 0 [Information] => Fail! ) )

print_r( $zklib->getDate() );

stdClass Object ( [Date] => 2016-12-05 [Time] => 12:49:41 )

also print_r( $zklib->checkState($host) );

1

my device used (ZEM800) any idea?

Dmo3 commented 7 years ago

fixed ,, there is a password in the device , i just remove it .

if I want to use the password is there a function to set it ?

sdnzak commented 7 years ago

Sorry, there is no a function to set password ! But to secure the data in the attendance machine you can configure your network so that only the server that contains the application can communicate with the attendance machines !