14 lines
269 B
PHP
14 lines
269 B
PHP
<?php
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
use NoccyLabs\UPnP\SSDP\Discovery;
|
|
use NoccyLabs\UPnP\SSDP\SearchTarget;
|
|
|
|
$discovery = new Discovery();
|
|
$discovery->discover(SearchTarget::ROOT_DEVICE);
|
|
|
|
foreach ($discovery as $device) {
|
|
echo $device."\n";
|
|
}
|