cobisja / tad-php

PHP Library for ZK Time & Attendance Devices
MIT License
213 stars 159 forks source link

Device is not connecting #26

Open infomamun opened 7 years ago

infomamun commented 7 years ago

Hi Your code works well for ZKteco . But I have to Connect the device by device (company supplied) software before showing data by web browser. i.e If I try to execute php page before initializing company software, php page is showing `no data'. But after initializing/ connecting from company supplied software, if I browse that same php page, attendance data is showing.

I think this php library could not connect to the device independently.

How to resolve this issue so that I don't have to initialize company software at first?

cobisja commented 7 years ago

Hi,

Actually TAD-PHP is intented to perform direct connections to devices. There is no need to "boot your devices" using the "software supplied by the company".

If you read carefully the source code, you'll se the comunication between TAD-PHP and the devices is done via "curl", using the ip assigned to the device. If your device has an integrated web server running, the library should be able to "talk to device".

I think you have another kind of trouble. Check the device's communication settings. Also, ask your network's administrator about the network's parameters (proxy, netmask, etc.)

Best regards,

Cobis

2017-06-14 2:29 GMT-04:00 infomamun notifications@github.com:

Hi Your code works well for ZKteco . But I have to Connect the device by device (company supplied) software before showing data by web browser. i.e If I try to execute php page before initializing company software, php page is showing `no data'. But after initializing/ connecting from company supplied software, if I browse that same php page, attendance data is showing.

I think this php library could not connect to the device independently.

How to resolve this issue so that I don't have to initialize company software at first?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cobisja/tad-php/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/AJzLMqI0fe9-SUT93i-eU9zNpGkGkGNhks5sD33DgaJpZM4N5b9c .