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

    Mqtt will not publish.

    UIFlow
    3
    8
    3.3k
    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.
    • R
      rob.driver1970
      last edited by

      I have an M5Stack core 2 that I'm trying to get to publish to a Mosquito broker installed in Home Assistant. I can subscribe fine but I just can't get it to publish. Is anyone else having issues with this? Could it be the firmware revision? I can send topics through Node Red and receive them fine but no matter what I try I can't get it to publish.

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

        We need to see code in order to help.
        I have a core2 AWS that sends to a mosquito server on and RPI and it works fine

        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
        • R
          rob.driver1970
          last edited by

          0_1695936829008_2e4deaa1-efe9-4d68-a638-ec6d608b85e7-image.png

          Just a test setup at the moment. I can subscribe and get the topic message. When I press the buttons, the test display shows the buttons were pressed but the message does not post to the broker.

          G ajb2k3A 2 Replies Last reply Reply Quote 0
          • G
            gavin67890 @rob.driver1970
            last edited by

            Hi @rob-driver1970,

            For comparison, this is mine for AWS MQTT.

            0_1695937885789_Screenshot 2023-09-28 at 22.50.46.png

            Atom LITE | Atom Matrix | StickC | CORE2 | Paper | ...

            1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3 @rob.driver1970
              last edited by

              @rob-driver1970 it won’t, you have published and subscribed to 2 different topics

              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
              • ajb2k3A
                ajb2k3
                last edited by

                Check out my YouTube channel as I’m sure I covered it on their but I uploaded a tone of programs to my Adam Bryant GitHub repository

                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
                • R
                  rob.driver1970
                  last edited by

                  It just didn't like the Mosquitto broker in Home Assistant I installed EMQX Broker and it works like a charm.

                  ajb2k3A 1 Reply Last reply Reply Quote 1
                  • ajb2k3A
                    ajb2k3 @rob.driver1970
                    last edited by

                    @rob-driver1970 thanks for letting us know

                    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