Zkteco Tad PHP库无法连接

时间:2019-12-17 07:19:44

标签: php phplib

我正在将此PHP库用于Zkteco设备。但似乎无法正常工作或无法连接到设备Github Link


  

致命错误:未捕获的TADPHP \ Exceptions \ ConnectionError:D:\ xampp \ htdocs \ tad-php-master \ lib \ TAD.php:408中不可能出现的初始锥体192.168.2.63堆栈跟踪:#0 D:\ xampp \ htdocs \ tad-php-master \ lib \ TAD.php(271):TADPHP \ TAD-> check_for_connection()#1 D:\ xampp \ htdocs \ tad-php-master \ test.php(20):TADPHP \ TAD-> __ call('get_date',Array)#2 {main}放在第408行的D:\ xampp \ htdocs \ tad-php-master \ lib \ TAD.php中


这是我正在尝试执行的当前代码,但出现错误。

<?php
require 'lib/TADFactory.php';
require 'lib/TAD.php';
require 'lib/TADResponse.php';
require 'lib/Providers/TADSoap.php';
require 'lib/Providers/TADZKLib.php';
require 'lib/Exceptions/ConnectionError.php';
require 'lib/Exceptions/FilterArgumentError.php';
require 'lib/Exceptions/UnrecognizedArgument.php';
require 'lib/Exceptions/UnrecognizedCommand.php';


$tad_factory = new TADPHP\TADFactory();


use TADPHP\TADFactory;
use TADPHP\TAD;

 $tad = (new TADFactory(['ip'=>'192.168.2.63']))->get_instance();
$dt = $tad->get_date();
// if($tad->is_alive())

// {
//  echo "Done";
// }
// else
// {

//  echo"Dead Connection";
// }
?>
<html>
<head>
    <title></title>
</head>
<body>
<!-- <input type="text" name="" value="<?php echo $firmware;?>"> -->
</body>
</html>

0 个答案:

没有答案