Open kvachakhia opened 1 year ago
Hello, I'm getting error unpack(): Type H: not enough input, need 1, have 0 using php version 7.4
Code: $zk = new ZKTeco('device ip', 'device port'); $zk->connect(); $zk->enableDevice() $zk->getUser()
$zk = new ZKTeco('device ip', 'device port'); $zk->connect(); $zk->enableDevice() $zk->getUser()
I get to the same error
i get the same error
I am also getting the same error.
@raihanafroz any guideline or suggestions?
when i have these codes
$zk = new ZKTeco('port'); $zk->connect();
i got this in vardump
Rats\Zkteco\Lib\ZKTeco {#11207 ▼ +_ip: "port" +_port: 4370 +_zkclient: Socket resource @701 +_data_recv: "" +_session_id: 0 +_section: "Rats\Zkteco\Lib\Helper\Connect::connect" }
but when i add $zk->getUser(); or $zk->enableDevice(); i am also receiving that error i think its because of this _data_recv variable but i dont know what is this
i hope for follow up
im back and solve my problem i used the connection zkt -> ethernet -> wifi device -> wifi connection -> pc like this diagram
then set the ip of zkt ip address
use ping [zkt ip address]
in cmd to check if you are already can connect to device
this video helps https://www.youtube.com/watch?v=zJeJQFYo-2Q
i hope this helps
Hello, I'm getting error unpack(): Type H: not enough input, need 1, have 0 I'm checking My Device from ZKTeco app
Code: ` $zk = new ZKTeco(178.134.35.35, 4370);
`