🤖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

    General
    3
    3
    7.4k
    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
      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
        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
          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
          • First post
            Last post