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

    "Smart" network configuration from UIFlow?

    Scheduled Pinned Locked Moved UIFlow
    4 Posts 2 Posters 8.6k Views 1 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.
    • D Offline
      Devilstower
      last edited by

      Is it possible to use UI Flow to set up the kind of "smart configuration" that's standard in most ESP32 IoT applications? That is:

      1. Initiate a network and server on device.
      2. Scan for local WiFi.
      3. Present information on device screen informing users the name of the network and web page for configuration.
      4. Allow users to join the device network, navigate to page, select desired network, and enter password.
      5. Save the network and password for later use.
      6. Close the server and connect to the user specified network.
      7. On failure to connect, go back to 1.

      This is the primary issue standing between my using UI flow to knock out a few prototype screens, and actually being able to develop with UI Flow. I'm hoping that it's already in there and I just don't understand the terminology of the blocks involved.

      Thanks.

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

        if you know the network params in advance maybe you can consider uploading a lookup table to switch networks?

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

          I want to be able to take it anywhere and detect the local networks. The initial setup of the StickC allows this, and I've set up a similar process on an ESP8266, but but I don't see any way to trigger that kind of sequence in UIFlow.

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

            @devilstower have you tried using the scan method described here?
            https://docs.micropython.org/en/latest/library/network.html

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