🤖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?

    UIFlow
    2
    4
    7.4k
    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

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