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

    Atom Thermal Printer MQTT

    General
    4
    7
    7.7k
    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.
    • D
      ddavitt
      last edited by

      Hi, I recently got the Atom Thermal printer and I’ve been trying to send an MQTT payload from NodeRED running on a Pi (just using inject node to test). I have it connecting but if I just send a string through as the payload nothing happens. If I send a string along with a print command it prints but it includes the command (see picture) , any ideas how I format the payload so it can print a string?

      0_1639178641784_IMG_0437.jpeg

      S 1 Reply Last reply Reply Quote 0
      • S
        schmid01 @ddavitt
        last edited by

        @ddavitt Sounds like an interesting Project. Can you post the Code?

        D 1 Reply Last reply Reply Quote 0
        • D
          ddavitt @schmid01
          last edited by

          @schmid01 I hope it will become quite an interesting project once I get things working. In the long run I want to send order details from my Etsy store straight to the printer using Etsy's API. I've blacked out my printers MAC address from the screenshots for obvious reasons. I've tried adding it to msg.payload.command as well as I seem to remember that's how you send different variables in a payload but it didn't work. I'm a bit rusty with MQTT as its been a couple of years since I've used it. M5Stack list all the commands on the product page but they don't really explain how to issue them via MQTT and the bulk of the instructions are in Chinese. 0_1639346051371_NodeRed.png 0_1639346066649_Inject_node.png

          m5stackM 1 Reply Last reply Reply Quote 0
          • m5stackM
            m5stack @ddavitt
            last edited by m5stack

            @ddavitt that command you used is for the UART communication. for the time being. MQTT only support you printing some String. also we will update the firmware at soon at possible to let it support more functions.

            D 1 Reply Last reply Reply Quote 0
            • D
              ddavitt @m5stack
              last edited by

              @m5stack thanks for letting me know. However If I just send a string it doesn’t print, it only prints if I add one of the UART commands to the string, is that a bug that will be fixed with a firmware update?

              1 Reply Last reply Reply Quote 0
              • D
                ddavitt
                last edited by

                @m5stack I’ve decided to give up on using MQTT and send commands direct to the printer from the atom but I’m struggling to figure out the right way to send commands via UART in UIFlow. Is it possible to get a simple “hello world” UART UIFlow example for the thermal printer?

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

                  This is what I wanted to try but I don't have a printer 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
                  • First post
                    Last post