MQTT connection problem

  • 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.

  • 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)?

  • 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.