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

    Mqtt will not publish.

    Scheduled Pinned Locked Moved UIFlow
    8 Posts 3 Posters 6.0k 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.
    • R Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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

                    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