Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    connecting to unsecured WiFi

    Scheduled Pinned Locked Moved WiPy 2&3
    wipy 1wipywifi
    3 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      KMcLoud
      last edited by

      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.

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        KMcLoud @KMcLoud
        last edited by

        @KMcLoud

        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?

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bucknall @KMcLoud
          last edited by

          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!

          Developer Evangelist - Pycom

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom