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

    MQTT connection problem

    FAQS
    2
    3
    10.0k
    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
      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
        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
          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
          • First post
            Last post