🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Changing Networks in UIFlow?

    UIFlow
    2
    3
    4.8k
    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.
    • D
      Devilstower
      last edited by

      I've built a little device that I want to be able to take from site to site.

      At my home, it correctly picks up the local network, connects, and begins saving data to my website. The MSStickC is connected to a solar panel, and I'm delighted to see that in the morning, as soon as the sun hits the panel, it boots up, reconnects, and begins doing its job.

      However, I'd like to be able to take it to other locations, and have the option to log into the networks there. Is there a good example of how this might be done? I'm not asking for how to hardcode a network into the device -- I know how to do that -- I need to be able to flexibly attach to a network that I didn't know about when writing the code. Thanks.

      J 1 Reply Last reply Reply Quote 0
      • J
        jhfoo @Devilstower
        last edited by

        @devilstower you can write a custom app and switch to that in a new network. the custom app will switch to AP mode with a web page you can use to set the local network params.

        1 Reply Last reply Reply Quote 0
        • D
          Devilstower
          last edited by

          Yes, it sounds like this is what will be needed.

          It would be great if UIFlow would just roll up the whole sequence of switching to AP mode, collecting the info, and reconnecting. It's such a standard behavior for ESP-based devices, that it seems like it should be baked-in.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post