connecting to unsecured WiFi
-
The docs list "None" as an acceptable value for the security field in the auth tuple when calling WLAN.connect(). This would seem to suggest that it is possible to connect the Wipy to an unsecured WiFi network when in station mode.
However, I have not been able connect to an unsecured network. I've tried both using an empty string and None as the 2nd field of the auth tuple, neither has worked. I've also tried passing None instead of a tuple.
-
I figured it out!
though the solution is so simple its a bit embarrassing to admit the mistake...
auth is an optional argument in the WLAN.connect method, and apparently passing it a tuple causes problems when dealing with unsecured networks.
So, for clarity, the method call to connect to an unsecured WiFi network named 'bob' is simply:
WLAN.connect('bob')
Given that this is the case, does anyone know why the doc's list None as an acceptable value for security in the auth tuple? Is there some other situation where you would use that?
-
Hi @KMcLoud - I'm just having a look into this for you! I'll get the docs updated to reflect this as you're right, this isn't very clear!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login