[MQTT] Is the keepalive of the CONNECT message set to 120 seconds?
Posted: Wed Nov 13, 2024 4:37 am
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
[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