MQTT and mosquitto client connection error.

96 views
Skip to first unread message

Joaquin Gonzalez

unread,
Jan 15, 2024, 1:57:10 PMJan 15
to MQTT
Hi, I'm new to using mqtt. I am working on a project where I use the paho c library (https://github.com/eclipse/paho.mqtt.c.git) to connect to mosquitto. When I use version 1.3.9 of paho I don't have any connection problems, but when I use versions 1.3.10 onwards, I get the error: MQTT error [-1]: TCP/TLS connect failure. I am using a mosquitto configuration file, which is being read correctly:

listener 1883

listener 8883
websockets protocol

allow_anonymous true

Any help would be appreciated.
Reply all
Reply to author
Forward
0 new messages