Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] keepalive parameter in mosquitto_connect

Hi,

 Kindly help on this.

 In mosquitto_connect(), I am giving value of keepalive parameter to 6. So,
 after 6 seconds publisher and subscriber clients both are disconnected. it
 means connection to broker is very highly dependent to keepAlive parameter.
  How can a both publisher and subscriber clients always keep connected to
 broker until whole system goes down?
 Is it I need to keep  value of keepalive very high? Does client always need
 to reconnect to broker once there is disconnection from broker?

 Thanks in advance.

 Regards,
 Bhashkar

Back to the top