[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [mosquitto-dev] keepalive parameter in mosquitto_connect | 
Hi Bhashkar,
On the MQTT list I said this:
You need to ensure that you call one of the mosquitto_loop*()
functions to keep network traffic flowing. This is explained in the
documentation.
Are you calling one of the mosquitto_loop*() functions?
Regards,
Roger
On Fri, Mar 14, 2014 at 5:13 AM, bhashkar prakash singh
<singh.bhashkar@xxxxxxxxx> wrote:
> 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
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
>