[mosquitto-dev] keepalive parameter in mosquitto_connect
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.