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

    WiFi AP Connectivity UIFlow V2.0.0

    UIFlow
    2
    4
    3.1k
    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.
    • G
      gminich
      last edited by

      Hello,

      I am creating an app on a Core 2 device which requires Internet connectivity and using UIFlow V2.0.0 (Aplha-28). I cannot figure out how to connect to my WiFi network. In older versions of UIFlow, there apparently were "Network" functions, which had a connect to WiFi function. In Alpha-28, there are "WLAN AP" functions however, I have tried setting SSID and password, followed by "INIT WLAN AP" and I cannot seem to successfully compile and get my program working. I must be doing something incorrectly.

      Are there documents, tutorials and/or samples for UIFlow 2.0.0? Would I be better off using Arduino tools and direct coding?

      Thank you

      1 Reply Last reply Reply Quote 0
      • BergKatseB
        BergKatse
        last edited by BergKatse

        You should init the WLAN AP first, then connect.

        But I am having a similar problem. When connected via USB, everything works great. When I run the same program without USB connected, I get a wifi oserror, and attempts to have my StickC+ talk to my desktop via MQTT don't work at all. It won't even load the Widgets to set screen parameters on the StickC+. It's like the Wifi connection is only allowed to work for UIflow??

        G 2 Replies Last reply Reply Quote 0
        • G
          gminich @BergKatse
          last edited by

          @bergkatse Thank you for your reply, it sent me in the right direction. I will admit, this platform does not have the best documentation. Items such as this require hit-and-miss troubleshooting. I have experienced strange initialization issues with other sensors and simply moving the block of initialization code resolved the issue.

          I was able to get around WiFi INIT issue based on your suggestion however, I am unable to connect to my WiFi network. I'll keep trying and if I'm successful, I'll try connecting while not connected to USB to see if I experience the same issue as you are having.

          Thank you

          1 Reply Last reply Reply Quote 0
          • G
            gminich @BergKatse
            last edited by

            @bergkatse I managed to resolve some of the issues that I was having and, implemented MQTT into my Core 2 monitoring. I stuck with UIFlow for this initial application to see how capable it was. It's not too bad however, I believe I will move to the Arduino IDE for more control. Here is the M5Stack Core 2 app that I created for your reference:

            0_1701112507127_cb317c54-58c7-404a-ae59-e84bf132f4c9-image.png

            I'm note sure if I implemented the WLAN functionality properly however, it works under all conditions. For example, if I exit the area of WiFi coverage, the connection resumes when I get back into range.

            Thank you

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