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

    Wifi with multiple configurations

    Scheduled Pinned Locked Moved WiPy 2&3
    wifi
    3 Posts 3 Posters 441 Views 3 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.
    • A Offline
      arthurlutz
      last edited by

      Is there a library or a smart way to handle multiple wifi settings so that a device can store multiple configuration and cycle though these configuration (with a preference order) in order to connect to wifi networks ?

      On the ESP/Arduino side, there seems to exist WifiManager https://github.com/tzapu/WiFiManager which has some neat advanced features.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        Stevo52 @arthurlutz
        last edited by

        @arthurlutz Hi, not sure if it is the 'right' way but I am doing this sort of thing. I use a 'configuration' module and store all the various wi-fi networks and settings there - including internal/external antenna, STA/AP/STA-AP. They are individualised by using DEF for each and then returning the information as a tuple. When initiating the WLAN service, the required configuration is determined in code and then called, the returned tuple used to provide the settings. It works OK for what I am doing. Hope that makes sense. It is useful for picking out the required network from a swarm of available ones as well. I did search for something existing but ended up 'rolling my own' solution. The configuration file makes the data common for any module to use and also allows the WLAN data to be updated, amended etc very easily without needing excessive code rewrites.. It works very well for my needs, :-)

        Now registered on this forum as Steve Williams (due to an email address change) - stevo7452@gmail.com

        1 Reply Last reply Reply Quote 0
        • P Offline
          Paul Thornton
          last edited by

          We dont have anything official for this at the moment.

          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