The process of adding a user to the device does not work in Laravel
Those who can help provide the solution from the beginning of the process
this is my code…
use maliklibsZktecoLibZKTeco;
$zk = new ZKTeco('192.168.100.222',4370);
$zk->connect();
$zk->enableDevice();
$zk->setUser(1, '211', 'Carl', '5555', Util::LEVEL_USER, '0007909321');
$zk->disableDevice();
This is the package that I use
https://github.com/sketchtechnologies1/zkteco/tree/main
2
Answers
First check if connection is OK, use
ineger
in the number arguments. Don’t try1
as unique ID, It’s maybe admin or something try10
.Note: Read the docs
So he working code should be:
This could help: