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

    M5stick C - Rasp Pi integration with MQTT

    Scheduled Pinned Locked Moved General
    3 Posts 3 Posters 8.8k 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.
    • N Offline
      nirvana07
      last edited by nirvana07

      Hi all,

      I am currently working on a project which has facial recognition job on Raspberry Pi. But now, I am looking forward to connecting it with M5stick through MQTT. The main goal is to get a notification and an image to be displayed on M5Stick.

      Basically, the steps involved in establishing a link between Pi and ESP-32 through MQTT.
      Can anyone guide me on the same? I am a newbie here and looking for as much information as possible.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jhfoo @nirvana07
        last edited by

        @nirvana07 I would suggest you:

        1. First learn about writing normal Python code to learn, test, and validate your MQTT server setup.
        2. Use uiflow blockly to draw out your MQTT code, and flip to the Python tab to see the auto generated code. Make changes as needed.

        No free lunch here. As newbie you should be prepared to invest time into this.

        1 Reply Last reply Reply Quote 1
        • qlionQ Offline
          qlion
          last edited by

          Hi

          Install mqtt in the pi
          https://www.instructables.com/id/Installing-MQTT-BrokerMosquitto-on-Raspberry-Pi/

          Setup a Python app with a mqtt client on the pi
          http://www.steves-internet-guide.com/into-mqtt-python-client/

          Setup mqtt client on your M5Stick
          https://github.com/m5stack/M5Cloud/tree/master/examples/MQTT

          This should be a good start to get mqtt connected on the both devices.

          1 Reply Last reply Reply Quote 2

          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