(self, delay=2, **headers)
return self.discovered_devices
Find UPnP devices on the network

        Find available UPnP devices on the network by sending an M-SEARCH
        request.

        :param delay: Discovery delay, amount of time in seconds to wait for a
                      reply from devices
        :type delay: int
        :param headers: Optional headers for the request
        :return: List of discovered devices
        :rtype: list
Find UPnP devices on the network
Find UPnP devices on the network
def discover(self, delay=2, **headers):
        """Find UPnP devices on the network

        Find available UPnP devices on the network by sending an M-SEARCH
        request.

        :param delay: Discovery delay, amount of time in seconds to wait for a
                      reply from devices
        :type delay: int
        :param headers: Optional headers for the request
        :return: List of discovered devices
        :rtype: list

        """

        discovered_devices = []
        for device in self.ssdp.m_search(discover_delay=delay,
                                         st='upnp:rootdevice',
                                         **headers):
            discovered_devices.append(device)

        self.discovered_devices = discovered_devices
        return self.discovered_devices
def discover ( self , delay = 2 , * * headers ) : discovered_devices = [ ] for device in self . ssdp . m_search ( discover_delay = delay , st = 'upnp:rootdevice' , * * headers ) : discovered_devices . append ( device ) self . discovered_devices = discovered_devices return self . discovered_devices