def connected_start(): global conn_list ip = nm.get_active_ip() mdns.add_hosts(dns_names, ip) conn_list = []
def hotspot_pass(): log.debug("Activating mdns") # IP tolerance for PI 2 for _ in range(5): ip = nm.get_active_ip(modemgr.get_state_device('HOTSPOT')) if ip: mdns.clear_entries() mdns.add_hosts(dns_names) break time.sleep(1)
def connected_start(): global conn_list # IP tolerance for PI 2 for _ in range(5): ip = nm.get_active_ip(modemgr.get_state_device('CONNECTED')) if ip: mdns.clear_entries() mdns.add_hosts(dns_names) break time.sleep(1) conn_list = []
def hotspot_pass(): log.debug("Activating mdns") ip = nm.get_active_ip() mdns.add_hosts(dns_names, ip)