malikwaqasmustafa / zkteco

UnOfficial ZKTeco library to handle most of the basic needs
5 stars 1 forks source link

connection timeout on trying wrong ip address #1

Closed malikwaqasmustafa closed 2 years ago

malikwaqasmustafa commented 2 years ago

This issue was fixed by providing timeout parameter inside the constructor as third argument and default value was to set 5 seconds so when you instantiate the class you can pass the argument inside it after the port number and it should resolve the issue.

malikwaqasmustafa commented 2 years ago

use $zk = new ZKTeco('192.168.1.201', $port, $timeout_in_seconds);