mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-31 19:25:14 +02:00
docs: Clarify keepalive timeout
Adds information on the behavior of the PINGREQ message timeout and some reasoning behind the choice.
This commit is contained in:
@@ -315,7 +315,10 @@ typedef struct esp_mqtt_client_config_t {
|
|||||||
int retain; /*!< LWT retained message flag */
|
int retain; /*!< LWT retained message flag */
|
||||||
} last_will; /*!< Last will configuration */
|
} last_will; /*!< Last will configuration */
|
||||||
bool disable_clean_session; /*!< *MQTT* clean session, default clean_session is true */
|
bool disable_clean_session; /*!< *MQTT* clean session, default clean_session is true */
|
||||||
int keepalive; /*!< *MQTT* keepalive, default is 120 seconds */
|
int keepalive; /*!< *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 */
|
||||||
bool disable_keepalive; /*!< Set `disable_keepalive=true` to turn off keep-alive mechanism, keepalive is active
|
bool disable_keepalive; /*!< Set `disable_keepalive=true` to turn off keep-alive mechanism, keepalive is active
|
||||||
by default. Note: setting the config value `keepalive` to `0` doesn't disable
|
by default. Note: setting the config value `keepalive` to `0` doesn't disable
|
||||||
keepalive feature, but uses a default keepalive period */
|
keepalive feature, but uses a default keepalive period */
|
||||||
|
Reference in New Issue
Block a user