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

    Working MQTT and AtomS3 sample

    Atom
    1
    1
    207
    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.
    • B
      bluedude
      last edited by

      Hi,

      I took me a while to get MQTT subscribe working, i'm always surprised how sparse M5's documentation is. This company would do so much better with more samples and better documentation. The hardware and price is great but it lacks a certain degree of details.

      Anyway, hereby a working sample with a EMQX MQTT broker which we setup on our own server with elast.io.

      We tested the sample and it works. The trick for Subscribe was using MQTT apply for messaging in the Loop. Without that it wont't work.

      See the blog

      Next problem is getting some code to be able to change WIFI credentials on the fly without needing to burn an image again. What happened to WIFI Smart Config?

      blog

      1 Reply Last reply Reply Quote 0
      • First post
        Last post