dnaextrim / php_zklib

Attendance Machine Library for PHP with a connection to the network using the UDP protocol and port 4370
http://dnaextrim.github.io/php_zklib/
GNU General Public License v2.0
162 stars 135 forks source link

return blank while using socket_recvfrom() at zkteco k14 #29

Open pyaeswin opened 6 years ago

pyaeswin commented 6 years ago

why return blank using socket_recvfrom()? please explain me what's wrong? when i use tx628 device, that function is work and return '8' but this device not work.

pyaeswin commented 6 years ago

please @dnaextrim

technoartista commented 6 years ago

Can you please share your code. I have same model device. I will check it out

pyaeswin commented 6 years ago

i only use this library but not work and please suggest me how to use ipaddress and port @technoartista

pyaeswin commented 6 years ago

socket_recvfrom($this->socket, $this->received_data, 1024, 0, $this->ip, $this->port); print_r(strlen($this->received_data)); die(); at zkconnect function at zkconnect.php

Output of the lenght of $this->received_data is only 0

pyaeswin commented 6 years ago

please @dnaextrim what's wrong with me

technoartista commented 6 years ago

Hi I am also using the same library. It's working fine for me.

You can reach me at Suryakumaran at Technoartista dot com

I can connect in team viewer and assist you with this setup.

pyaeswin commented 6 years ago

what's your model? my model is k14. For confirmation for device model.

bjrukin commented 6 years ago

I also used device k14. It does not connect but u160 is connected. and my code is same as library. Also I am getting wrong status. All status are 1.

Thank you for nice work.