我已經使用github的tad php(https://github.com/cobisja/tad-php)現在我收到下面顯示的錯誤。Tad PHP連接錯誤
Fatal error: Uncaught exception 'TADPHP\Exceptions\ConnectionError' with message 'Imposible iniciar conexión con dispositivo 192.168.0.126' in C:\xampp\htdocs\tad\lib\TAD.php:409 Stack trace: #0 C:\xampp\htdocs\tad\lib\TAD.php(271): TADPHP\TAD->check_for_connection() #1 C:\xampp\htdocs\tad\index.php(44): TADPHP\TAD->__call('get_date', Array) #2 C:\xampp\htdocs\tad\index.php(44): TADPHP\TAD->get_date() #3 {main} thrown in C:\xampp\htdocs\tad\lib\TAD.php on line 409
我使用ZK IFACE 302設備,我想通過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;
$comands = TAD::commands_available();
$b1 = (new TADFactory(['ip'=>'192.168.0.126']))->get_instance();
$dt = $b1->get_date(); // method executed via TAD class.
echo $dt;
?>