def discover(self, seconds=2):
        log.info("Discovering devices")
        with gevent.Timeout(seconds, StopBroadcasting) as timeout:
            try:
                try:
                    while True:
                        self.upnp.broadcast()
                        gevent.sleep(1)
                except Exception as e:
                    raise StopBroadcasting(e)
            except StopBroadcasting:
                return
Discover devices in the environment.
dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/environment.py/Environment.discover