You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp_mqtt_error_type_terror_type; /*!< error type referring to the source of the error */
123
130
esp_mqtt_connect_return_code_tconnect_return_code; /*!< connection refused error code reported from MQTT broker on connection */
131
+
/* tcp_transport extension */
132
+
intesp_transport_sock_errno; /*!< errno from the underlying socket */
133
+
124
134
} esp_mqtt_error_codes_t;
125
135
126
136
/**
@@ -179,7 +189,7 @@ typedef struct {
179
189
intrefresh_connection_after_ms; /*!< Refresh connection after this value (in milliseconds) */
180
190
conststructpsk_key_hint*psk_hint_key; /*!< Pointer to PSK struct defined in esp_tls.h to enable PSK authentication (as alternative to certificate verification). If not NULL and server/client certificates are NULL, PSK is enabled */
181
191
booluse_global_ca_store; /*!< Use a global ca_store for all the connections in which this bool is set. */
182
-
intreconnect_timeout_ms; /*!< Reconnect to the broker after this value in miliseconds if auto reconnect is not disabled */
192
+
intreconnect_timeout_ms; /*!< Reconnect to the broker after this value in miliseconds if auto reconnect is not disabled (defaults to 10s) */
183
193
constchar**alpn_protos; /*!< NULL-terminated list of supported application protocols to be used for ALPN */
intclientkey_password_len; /*!< String length of the password pointed to by clientkey_password */
@@ -188,6 +198,8 @@ typedef struct {
188
198
boolskip_cert_common_name_check; /*!< Skip any validation of server certificate CN field, this reduces the security of TLS and makes the mqtt client susceptible to MITM attacks */
189
199
booluse_secure_element; /*!< enable secure element for enabling SSL connection */
190
200
void*ds_data; /*!< carrier of handle for digital signature parameters */
201
+
intnetwork_timeout_ms; /*!< Abort network operation if it is not completed after this value, in milliseconds (defaults to 10s) */
202
+
booldisable_keepalive; /*!< Set disable_keepalive=true to turn off keep-alive mechanism, false by default (keepalive is active by default). Note: setting the config value `keepalive` to `0` doesn't disable keepalive feature, but uses a default keepalive period */
0 commit comments