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