Change in wifi behavior after update to 1.1.0

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
cswiger
Posts: 13
Joined: Fri Oct 16, 2015 9:51 pm

Change in wifi behavior after update to 1.1.0

Post by cswiger » Thu Oct 22, 2015 11:53 pm

My (admittedly sub-optimal) main.py wifi init script stopped working after update to 1.1.0.

Took a while but traced it down to this:

wifi = WLAN(WLAN.STA)

wifi would still be in WLAN.AP mode and subsequent attempts to connect would error. This is working now:

wifi = WLAN()
wifi.mode(WLAN.STA)
wifi.ifconfig( your network parameters )
wifi.connect( your ap parameters )

I always say, you learn the most by troubleshooting 8-)

User avatar
mbirth
Posts: 25
Joined: Mon Oct 20, 2014 1:00 pm
Location: Berlin, Germany
Contact:

Re: Change in wifi behavior after update to 1.1.0

Post by mbirth » Fri Oct 23, 2015 8:34 am

cswiger wrote:wifi = WLAN(WLAN.STA)
The new syntax would be:

Code: Select all

wifi = WLAN(mode=WLAN.STA)
It's also mentioned in the documentation.
pyBoard v1.0 + LCD32MKv1.0 | WiPy + Expansion Board | GitHub

cswiger
Posts: 13
Joined: Fri Oct 16, 2015 9:51 pm

Re: Change in wifi behavior after update to 1.1.0

Post by cswiger » Fri Oct 23, 2015 11:53 am

yes, hours of frustrated experimenting can save you minutes of reading :lol:

Saran
Posts: 16
Joined: Thu May 28, 2015 6:52 pm

Re: Change in wifi behavior after update to 1.1.0

Post by Saran » Fri Oct 23, 2015 11:58 am

mbirth wrote:
cswiger wrote:wifi = WLAN(WLAN.STA)
The new syntax would be:

Code: Select all

wifi = WLAN(mode=WLAN.STA)
It's also mentioned in the documentation.
That's all nice, but how do you explain behavior in this post: http://forum.micropython.org/viewtopic.php?f=11&t=1056?

User avatar
mbirth
Posts: 25
Joined: Mon Oct 20, 2014 1:00 pm
Location: Berlin, Germany
Contact:

Re: Change in wifi behavior after update to 1.1.0

Post by mbirth » Fri Oct 23, 2015 12:25 pm

Saran wrote:That's all nice, but how do you explain behavior in this post: http://forum.micropython.org/viewtopic.php?f=11&t=1056?
That had nothing to do with the mode as @danicampora explained there.
pyBoard v1.0 + LCD32MKv1.0 | WiPy + Expansion Board | GitHub

Post Reply