Page 1 of 1

[MQTT] Is the keepalive of the CONNECT message set to 120 seconds?

Posted: Wed Nov 13, 2024 4:37 am
by Okoshi Hiroaki
Hi

[MQTT] Is the keepalive of the CONNECT message set to 120 seconds?

https://docs.espressif.com/projects/esp ... /mqtt.html
said
----------------------------------------------
The explanation of MQTT keepalive states,
"MQTT keepalive, default is 120 seconds When configuring this value, keep in mind that the client attempts to communicate with the broker at half the interval that is actually set. This conservative approach allows for more attempts before the broker’s timeout occurs "

----------------------------------------------
By default, the client will send a PINGREQ message at most every 60 seconds, but is it correct to understand that the keepalive of the CONNECT message is set to 120 seconds?

(I was curious as to whether the keepalive of the CONNECT message is also set to 60 seconds, so I checked.)

Best Regards

Re: [MQTT] Is the keepalive of the CONNECT message set to 120 seconds?

Posted: Wed Nov 13, 2024 9:39 am
by nopnop2002
>is it correct to understand that the keepalive of the CONNECT message is set to 120 seconds?

What is keepalive of the CONNECT message?

My understanding is that MQTT keepalive is a timeout when not sending a PINGREQ.

Please let me know if there is any mistake in my understanding.