Ejemplo n.º 1
0
def setup_wifi():
    try:
        w = Wifi()
        w.set_hostname(MY_HOST)
    except OSError as ose:
        logger.print_error("WIFI Setup Failed!")
        raise

    return w
Ejemplo n.º 2
0
def setup_wifi():
    try:
        w = Wifi()
        w.set_hostname(MY_HOST)
        w.connect(WIFI_SSID, WIFI_PASS)
        w.info()
    except OSError as ose:
        logger.print_error("WIFI Setup Failed!")
        raise

    return w