---
title: roUPnPDevice
slug: develop/roupnpdevice
docTags: 
createdAt: 2025-03-26T17:39:54.014Z
---

This object is returned by the roUPnPSearchEvent.GetObject() method under certain conditions.

## ifUPnPDevice

**GetUUID() As String**

**GetHeaders() As roAssociativeArray**

Returns an associative array of headers (including vendor-specific extensions) associated with the advertisement or search.

**GetDeviceInfo() As roAssociativeArray**

Returns an associative array of device metadata from the device XML (applicable to root items only).

**GetEmbeddedDevices() As roAssociativeArray**

Returns an associative array of embedded roUPnPDevice object instances, keyed by device type.

**GetEmbeddedDevice(deviceType As String) As roUPnPDevice**

Returns an *roUPnPDevice&#x20;*&#x69;nstance, using the specified deviceType as a unique identifier. The `deviceType` parameter must use one of the following formats:

- `urn:schemas-upnp:device:deviceType:v`: Search for any device of this type. The deviceType and version (v) are defined by the UPnP Forum working committee.
- `urn:domain-name:device:deviceType:v:` Search for any device of this type. The domain-name,` deviceType`, and version (v) are defined by the UPnP vender. Period characters in the domain name must be replaced with hyphens in accordance with RFC2141.

**GetServices() As roAssociativeArray**

Returns an associative array of embedded roPnPService object instances, keyed by type.

**GetService(serviceType As String) As roUPnPService**

Returns an roUPnPService instance of the specified type.


