How to use component 3rdParty paho.mqtt.c

did you try to connect in terminal first?
e.g. using nc command (or even try to ping the IP first in terminal)
This can make sure the module can reach that IP and port.

You might also need to shut down firewall by:

iptables -I INPUT -j ACCEPT

hi @anderson, sorry, where did you write in the code

1883 is mosquitto, right?

hi its just a basic think would like to know, which is the best programming language to be used for implementing legato source code (c or c++).,baz max of the legato code found are in c programming. Thanks in advance