Added upnp-discover cli tool

This commit is contained in:
2017-02-16 17:40:02 +01:00
parent c3531ce5fa
commit e44becfa23
4 changed files with 275 additions and 1 deletions

View File

@ -93,6 +93,46 @@ class Device
return $this->ip;
}
public function getDevices()
{
return $this->devices;
}
public function getServices()
{
return $this->services;
}
public function getFriendlyName()
{
return $this->friendlyName;
}
public function getDeviceType()
{
return $this->deviceType;
}
public function getManufacturer()
{
return $this->manufacturer;
}
public function getModelName()
{
return $this->modelName;
}
public function getModelDescription()
{
return $this->modelDescription;
}
public function getUrl()
{
return $this->specUrl;
}
public function __toString()
{

View File

@ -35,6 +35,31 @@ class Service
}
public function getServiceType()
{
return $this->serviceType;
}
public function getServiceId()
{
return $this->serviceId;
}
public function getScpdUrl()
{
return $this->scpdUrl;
}
public function getControlUrl()
{
return $this->controlUrl;
}
public function getEventSubUrl()
{
return $this->eventSubUrl;
}
public function __toString()
{
return sprintf("Service: %s [%s]\nControl URL: %s\nEventSub URL: %s\nSCPD URL: %s\n",