def wifi_shield_found(response):
    res = requests.get(response.location, verify=False).text
    device_description = xmltodict.parse(res)
    cur_shield_name = str(device_description['root']['device']['serialNumber'])
    cur_base_url = str(device_description['root']['URLBase'])
    cur_ip_address = re.findall('[0-9]+(?:\\.[0-9]+){3}', cur_base_url)[0]
    list_id.append(cur_shield_name)
    list_ip.append(cur_ip_address)
    found_shield = True
    if (shield_name is None):
        print(('Found WiFi Shield %s with IP Address %s' % (cur_shield_name, cur_ip_address)))
        if (wifi_shield_cb is not None):
            wifi_shield_cb(cur_ip_address)
    elif (shield_name == cur_shield_name):
        if (wifi_shield_cb is not None):
            wifi_shield_cb(cur_ip_address)
def wifi_shield_found(response):
    res = requests.get(response.location, verify=False).text
    device_description = xmltodict.parse(res)
    cur_shield_name = str(device_description['root']['device']['serialNumber'])
    cur_base_url = str(device_description['root']['URLBase'])
    cur_ip_address = re.findall('[0-9]+(?:\\.[0-9]+){3}', cur_base_url)[0]
    list_id.append(cur_shield_name)
    list_ip.append(cur_ip_address)
    found_shield = True
    if (shield_name is None):
        print(('Found WiFi Shield %s with IP Address %s' % (cur_shield_name, cur_ip_address)))
        if (wifi_shield_cb is not None):
            wifi_shield_cb(cur_ip_address)
    elif (shield_name == cur_shield_name):
        if (wifi_shield_cb is not None):
            wifi_shield_cb(cur_ip_address)