コード例 #1
0
ファイル: discovery.py プロジェクト: saibotlv2/amazon-dash
def discover():
    """Print help and scan devices on screen.

    :return: None
    """
    click.secho(HELP, fg='yellow')
    scan_devices(discovery_print, lfilter=lambda d: d.src not in mac_id_list)
コード例 #2
0
def discover():
    """Print help and scan devices on screen.

    :return: None
    """
    print(HELP)
    scan_devices(discovery_print, lfilter=lambda d: d.src not in mac_id_list)
コード例 #3
0
    def run(self, root_allowed=False):
        """Start daemon mode

        :param bool root_allowed: Only used for ExecuteCmd
        :return: loop
        """
        self.root_allowed = root_allowed
        scan_devices(self.on_push, lambda d: d.src.lower() in self.devices)