session_t struct
*MQTT* Session related configuration
Fields
Last Will and Testament message configuration. Last will configuration.
*MQTT* clean session, default clean_session is true.
*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.
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 keepalive feature, but uses a default keepalive period.
*MQTT* protocol version used for connection.
timeout for retransmitting of failed packet.