🤖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.
    • 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
                          • D
                            dvd78 @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.

                            Hi @jpilarski, how can i save the file? don't i only need to do "download" from "http://flow.m5stack.com"?
                            i have a project working great if i download it from http://flow.m5stack.com, but when i reboot the M5Stack my module won't start...
                            Best
                            Davide

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

                              @dvd78 said in MQTT:

                              @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.

                              Hi @jpilarski, how can i save the file? don't i only need to do "download" from "http://flow.m5stack.com"?
                              i have a project working great if i download it from http://flow.m5stack.com, but when i reboot the M5Stack my module won't start...
                              Best
                              Davide

                              You need to connect you M5 to UIFlow, click the download button (a rough WIP guide is in my WIP Handbook on pages 7, 8, and 9)
                              You need to click the 3 horizantal lines to get the settings up and then click download.
                              When the M5 Stack restarts you need to hit the middle button (B) to get the app list then use the right button (C) to move down and then B to run 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
                              • D
                                dvd78
                                last edited by

                                thank you @ajb2k3... is there a way to start the m5 immediately with your program?

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

                                  @dvd78 I think.....
                                  If you just power it on it should autoload 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