<?php

require_once __DIR__ . '/../../app/services/hikvision/HikvisionClient.php';
require_once __DIR__ . '/../../app/services/hikvision/HikvisionDeviceService.php';

$client = new HikvisionClient([
    'ip'       => '192.168.100.254',
    'port'     => 80,
    'user'     => 'admin',
    'pass'     => '28251714.',
    'protocol' => 'http',
]);

$service = new HikvisionDeviceService($client);
$result = $service->detectar();

header('Content-Type: text/plain; charset=utf-8');
print_r($result);