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

    MQTT

    UIFlow
    5
    26
    95.9k
    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
      gadjet @ajb2k3
      last edited by

      @ajb2k3 Just use www.cloudmqtt.com, I use this with my RPi and node red, it's a free account with username and password and I've used it successfully for quite a while.

      Where can I find this Demo, maybe I get get it working with Cloudmqtt

      1 Reply Last reply Reply Quote 0
      • H
        heybin
        last edited by

        sorry, in this week mqtt m5flow will fix some bug, and add a example

        G 1 Reply Last reply Reply Quote 0
        • G
          gadjet @heybin
          last edited by

          @heybin That would be great, thanks.

          1 Reply Last reply Reply Quote 0
          • H
            heybin
            last edited by

            hello, Mqtt has been fixed in v1.1.1, but example need spend some time

            J 1 Reply Last reply Reply Quote 0
            • J
              jpilarski @heybin
              last edited by

              It's working great. I am connected to io.adafruit.com.
              set client id = your id
              server = io.adafruit.com (the cloud service you are connecting to but could be others such as cloudmqtt.com could just as easily be used)
              port = 1883
              user = your user name for the cloud service you are connecting to
              password = AIO key
              keepalive = 300 (not sure what this should be set to)

              for publish topic = your username/feeds/name of the feed

              I also set up a local broker using mqtt.fx on windows 10 and I was able to successfully connect to that as well. This is really great and now using ifttt all kinds of other apis can be explored in a quick and easy way. All you need to do is make a webhook and start sending data from the M5stack to the cloud. Maybe M5stack should make a custom service for IFTTT to monitor sensors and control devices and the like.

              G 1 Reply Last reply Reply Quote 0
              • G
                gadjet @jpilarski
                last edited by

                @jpilarski Great, any chance of a screen grab showing where the blocks go, is the server setup block in the setup and where does the start go, of course I could guess where things go but it would be nice to have a clue :-)

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

                  Nice, can't wait to play.

                  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
                  • J
                    jpilarski
                    last edited by jpilarski

                    0_1547713244710_Inkedmqtt_LI.jpg
                    I am using IFTTT with webhook based on an ok google "turn light on" and "turn light off" command. That message is relayed to io.adafruit and then transmits back to m5stack which performs a function based on the string received. Optionally data can also be sent to the cloud from the board using publish topic.

                    G ajb2k3A 2 Replies Last reply Reply Quote 1
                    • G
                      gadjet @jpilarski
                      last edited by

                      @jpilarski Thanks for that I'll give it a go.

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

                        @jpilarski said in MQTT:

                        0_1547713244710_Inkedmqtt_LI.jpg
                        I am using IFTTT with webhook based on an ok google "turn light on" and "turn light off" command. That message is relayed to io.adafruit and then transmits back to m5stack which performs a function based on the string received. Optionally data can also be sent to the cloud from the board using publish topic.

                        IS this the full code?
                        Doesn't do anything for me :(

                        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
                        • J
                          jpilarski
                          last edited by

                          You have to save the file to your board. Don't use run. Once it reboots it will connect to wifi and then run the mqtt blocks.

                          ajb2k3A D 2 Replies Last reply Reply Quote 0
                          • G
                            gadjet
                            last edited by

                            Well initially I got this working a treat but then made some changes and downloaded it and it stopped working ??? not sure what's going on.

                            I made a simple program to switch neopixel led to R, G and B from the three switches, when I run it using the play button it works, when I download it only one button works, I suspect there is something not working quite right when downloading the program.

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

                              @jpilarski said in MQTT:

                              You have to save the file to your board. Don't use run. Once it reboots it will connect to wifi and then run the mqtt blocks.

                              Are you running the 1.1.1 firmware as I don't have label appearing on the screen?

                              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!

                              G 1 Reply Last reply Reply Quote 0
                              • G
                                gadjet @ajb2k3
                                last edited by

                                @ajb2k3 Yes I am using firmware 1.1.1.
                                The first thing I was doing in mine was adding a title and updating the text of the title, I removed this and now it seems to work OK.

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

                                  @gadjet ah that explains it, I’m still running 1.0 as I haven’t had the time to update devices yet.

                                  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 ajb2k3

                                    Sarcasm funny that it works after the update Sarcasm

                                    Thanks, Gadget, can I use this demo in my book.

                                    still cant get the neopixel to work

                                    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!

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      gadjet @ajb2k3
                                      last edited by

                                      @ajb2k3 I'm using this flow and it works with a single RGB LED plugged in the grove port A
                                      RGB LED Flow

                                      Last night it would only work with the play button and not the download option, now it works with both ???

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

                                        @gadjet

                                        Ok something is missing that set the topic to on or off.

                                        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!

                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          gadjet @ajb2k3
                                          last edited by

                                          @ajb2k3 said in MQTT:

                                          @gadjet

                                          Ok something is missing that set the topic to on or off.

                                          Do you mean in the image I posted? that's just a flow to switch a neopixel LED on/off, no MQTT intervention.

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

                                            @gadjet

                                            Hmn, I need to play then.

                                            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