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

Okoshi Hiroaki
Posts: 8
Joined: Wed Oct 12, 2022 5:16 am

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

Postby Okoshi Hiroaki » 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

nopnop2002
Posts: 112
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

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

Postby nopnop2002 » Wed Nov 13, 2024 9:39 am

>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.

Who is online

Users browsing this forum: No registered users and 209 guests