Hi,
I am using Mosquitto C client library to connect to MQTT broker. I am connecting using below code.
int rc = mosquitto_connect(m_pMosq, MQTT_HOSTNAME, MQTT_PORT, 0);
What I need to do is I have to set timeout value manually instead of client decide that.
How can I set timeout for MQTT connection?
Likewise how to set timeout value while publishing message. I am using mosquitto_publish api for publishing message.
Thanks in advance.