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

    MQTT connection problem

    Scheduled Pinned Locked Moved FAQS
    3 Posts 2 Posters 11.9k 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.
    • K Offline
      kaotiklabs
      last edited by kaotiklabs

      Hi, I just bought a m5stack core device and I'm trying to subscribe it to my mqtt server but I can't.

      I'm using PubSubClient Library and I'm getting a Connection error.
      The device has wifi enabled and an ip assigned.

      It seems a library compatibility problem.
      Has anyone managed to connect to a mqtt broker?

      THanks in advance.

      1 Reply Last reply Reply Quote 0
      • S Offline
        SR
        last edited by

        Please post the line of code where you are creating the connection to the broker.

        Is the broker properly configured in respect to port usage (e.g. 1883 for no encryption/no authorization)?

        1 Reply Last reply Reply Quote 0
        • K Offline
          kaotiklabs
          last edited by

          Mhh I think I finally got it working.
          I was using WifiMulti.h and it seems there was the problem. Something with TLS handshake.
          I swaped to Wifi.h and now seems to work.

          1 Reply Last reply Reply Quote 0

          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