Added upnp-discover cli tool
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user