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
198 stars 179 forks source link

Get garbage value #71

Open Mahfuz2811 opened 5 years ago

Mahfuz2811 commented 5 years ago

I have used your library and your code just changed IP address. and get the below result...

Screenshot from 2019-08-29 17-53-06

How can I solve this issue? Firmware Version can be a problem?

Mahfuz2811 commented 5 years ago

@kamshory please can you give me some suggestion for this issue.

kamshory commented 5 years ago

I think you have to fixing data length until you get valid result.

Mahfuz2811 commented 5 years ago

How can i fix data length? Please may you help me to give some suggestions ...

kamshory commented 5 years ago

socket_recvfrom($this->socket, $received_data, 1032, 0, $this->ip, $this->port); 1032 is data length.

Mahfuz2811 commented 5 years ago

I solve the problem. The problem was for the firmware version. But how can I store user card number? I can able to store user information.

harshan89 commented 4 years ago

@Mahfuz2811 can you please tell me how did you get the type ( check it check out ) ? it's not coming with getAttendence()