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

    Possible Problems with MQTT?

    UIFlow
    4
    6
    5.2k
    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.
    • B
      bmtd111
      last edited by

      Hello,
      I'm currently working on a Project that requires me to monitor a door and post everytime the door gets opened or closed.
      I came up with the following Setup on an Atom Lite using the UIFlow IDE v1.11.1: 0_1674576135767_door_aws_1.PNG 1_1674576135767_door_aws_2.PNG
      On aws I'm subscribed to the Topic:"isDoorOpen/+/data" so i can collect data from different devices.
      My Problem is that it seems to be very inconsistent. I download the code to the Atom and it restarts and enters the App mode. At this Point everything seems to be working well, the LED changes and i see the messages on aws. But as soon as I try to attach everything to a door like this: ![0_1674576432603_20230124_165205.jpg](Uploading 100%) it doesnt seem to work. The LED sometimes stays red or the LED changes from red to green, detecting the motions correctly but doesnt post anything to aws.

      Are there any known bugs or complications that could cause this? Or anything wrong with my code?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • M
        mchott
        last edited by

        For this connection is Wifi needed .. and this step is missing in your flow. Just my first idea. During the connection via USB there isn´t a connection via wifi needed.

        B 1 Reply Last reply Reply Quote 0
        • B
          bmtd111 @mchott
          last edited by

          @mchott I configurated the Wifi connection using the M5burner. I will try to implement it in my code thoug, see if that makes a difference

          M 1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @bmtd111

            I think the WiFi connection configured via M5Burner only works as long as code is temporarily run on a device. In app mode though the WiFi connection might be lost if not executed within the UIFlow.

            Please see this thread.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 0
            • M
              mchott @bmtd111
              last edited by

              @bmtd111 You have to define the wifi connection in your scetch too .. because the configuration of M5Burner is just used during connection with the computer via USB.

              1 Reply Last reply Reply Quote 0
              • ajb2k3A
                ajb2k3
                last edited by

                If the Atom is not connected to the host computer as it is when testing, you will need to add the WIFI AP and Password blocks to the start of the program.

                UIFlow, so easy an adult can learn it!
                If I don't know it, be patient!
                I've ether not learned it or am too drunk to remember it!
                Author of the WIP UIFlow Handbook!
                M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

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