amazon_dash/discovery.py
def discovery_print(pkt):
    """Scandevice callback. Register src mac to avoid src repetition.
    Print device on screen.

    :param scapy.packet.Packet pkt: Scapy Packet
    :return: None
    """
    if pkt.src in mac_id_list:
        return
    mac_id_list.append(pkt.src)
    text = pkt_text(pkt)
    click.secho(text, fg='magenta') if 'Amazon' in text else click.echo(text)
def discovery_print(pkt):
    if pkt.src in mac_id_list:
        return
    mac_id_list.append(pkt.src)
    text = pkt_text(pkt)
    click.secho(text, fg='magenta') if 'Amazon' in text else click.echo(text)
def discovery_print ( pkt ) : if pkt . src in mac_id_list : return mac_id_list . append ( pkt . src ) text = pkt_text ( pkt ) click . secho ( text , fg = 'magenta' ) if 'Amazon' in text else click . echo ( text )
Scandevice callback. Register src mac to avoid src repetition.
    Print device on screen.

    :param scapy.packet.Packet pkt: Scapy Packet
    :return: None
Scandevice callback . Register src mac to avoid src repetition . Print device on screen .