WLAN 'Connecting to a Router' demo error.

  • Trying to run the demo for connecting to a router results in an error.

    'NoneType' object is not iterable.

    I think this refers to the line...
    for net in nets:
    after the assignment, nets = wlan.scan() nets is 'None'.

    Why doesn't this work?

    The MicroPython website has the same demo but another demo uses ...


    instead of...

    wlan = WLAN(mode=WLAN.STA)

    but that doesn't work either.

    I'm using a SyPy.

Log in to reply

Pycom on Twitter