Wipy 1 with WEP secured WiFi?



  • trying to connect a Wipy 1 to a WEP secured router, the following code appears to follow the docs, but does not work. (works fine with WPA)

    any idea what's going on?

    from network Import WLAN
    import time
    
    wlan=WLAN()
    
    wlan.mode(WLAN.STA)
    
    while not wlan.isconnected():
        wlan.connect('SSID HERE',auth=(WLAN.WEP, '26FB1238F8'),timeout=5000)
        time.sleep_ms(10000)
    

    where "26F..." is the WEP key

    (yes, I know WEP is obsolete, trying to make a project run on a network where I don't control the router)



Pycom on Twitter