Skip to content

Commit 2e12392

Browse files
authored
IDF release/v3.3 c33fc7821
esp-face: master 420fc7e esp32-camera: master 0107093
1 parent 6b01143 commit 2e12392

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+27
-6
lines changed

Diff for: tools/sdk/bin/bootloader_dio_40m.bin

-1.48 KB
Binary file not shown.

Diff for: tools/sdk/bin/bootloader_qout_40m.bin

0 Bytes
Binary file not shown.

Diff for: tools/sdk/bin/bootloader_qout_80m.bin

0 Bytes
Binary file not shown.

Diff for: tools/sdk/include/config/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,5 +393,5 @@
393393
#define CONFIG_BTDM_MODEM_SLEEP_MODE_ORIG 1
394394
#define CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR 1
395395
#define CONFIG_FATFS_API_ENCODING_ANSI_OEM 1
396-
#define CONFIG_ARDUINO_IDF_COMMIT "68b237fe5"
396+
#define CONFIG_ARDUINO_IDF_COMMIT "c33fc7821"
397397
#define CONFIG_ARDUINO_IDF_BRANCH "release/v3.3"

Diff for: tools/sdk/include/mqtt/mqtt_client.h

+23-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,17 @@ typedef enum {
8080
*/
8181
typedef enum {
8282
MQTT_ERROR_TYPE_NONE = 0,
83-
MQTT_ERROR_TYPE_ESP_TLS,
83+
MQTT_ERROR_TYPE_TCP_TRANSPORT,
8484
MQTT_ERROR_TYPE_CONNECTION_REFUSED,
8585
} esp_mqtt_error_type_t;
8686

87+
/**
88+
* MQTT_ERROR_TYPE_TCP_TRANSPORT error type hold all sorts of transport layer errors,
89+
* including ESP-TLS error, but in the past only the errors from MQTT_ERROR_TYPE_ESP_TLS layer
90+
* were reported, so the ESP-TLS error type is re-defined here for backward compatibility
91+
*/
92+
#define MQTT_ERROR_TYPE_ESP_TLS MQTT_ERROR_TYPE_TCP_TRANSPORT
93+
8794
typedef enum {
8895
MQTT_TRANSPORT_UNKNOWN = 0x0,
8996
MQTT_TRANSPORT_OVER_TCP, /*!< MQTT over TCP, using scheme: ``mqtt`` */
@@ -110,7 +117,7 @@ typedef enum {
110117
* Use this structure directly checking error_type first and then appropriate error code depending on the source of the error:
111118
*
112119
* | error_type | related member variables | note |
113-
* | MQTT_ERROR_TYPE_ESP_TLS | esp_tls_last_esp_err, esp_tls_stack_err, esp_tls_cert_verify_flags | Error reported from esp-tls |
120+
* | MQTT_ERROR_TYPE_TCP_TRANSPORT | esp_tls_last_esp_err, esp_tls_stack_err, esp_tls_cert_verify_flags, sock_errno | Error reported from tcp_transport/esp-tls |
114121
* | MQTT_ERROR_TYPE_CONNECTION_REFUSED | connect_return_code | Internal error reported from MQTT broker on connection |
115122
*/
116123
typedef struct esp_mqtt_error_codes {
@@ -121,6 +128,9 @@ typedef struct esp_mqtt_error_codes {
121128
/* esp-mqtt specific structure extension */
122129
esp_mqtt_error_type_t error_type; /*!< error type referring to the source of the error */
123130
esp_mqtt_connect_return_code_t connect_return_code; /*!< connection refused error code reported from MQTT broker on connection */
131+
/* tcp_transport extension */
132+
int esp_transport_sock_errno; /*!< errno from the underlying socket */
133+
124134
} esp_mqtt_error_codes_t;
125135

126136
/**
@@ -179,7 +189,7 @@ typedef struct {
179189
int refresh_connection_after_ms; /*!< Refresh connection after this value (in milliseconds) */
180190
const struct psk_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 */
181191
bool use_global_ca_store; /*!< Use a global ca_store for all the connections in which this bool is set. */
182-
int reconnect_timeout_ms; /*!< Reconnect to the broker after this value in miliseconds if auto reconnect is not disabled */
192+
int reconnect_timeout_ms; /*!< Reconnect to the broker after this value in miliseconds if auto reconnect is not disabled (defaults to 10s) */
183193
const char **alpn_protos; /*!< NULL-terminated list of supported application protocols to be used for ALPN */
184194
const char *clientkey_password; /*!< Client key decryption password string */
185195
int clientkey_password_len; /*!< String length of the password pointed to by clientkey_password */
@@ -188,6 +198,8 @@ typedef struct {
188198
bool skip_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 */
189199
bool use_secure_element; /*!< enable secure element for enabling SSL connection */
190200
void *ds_data; /*!< carrier of handle for digital signature parameters */
201+
int network_timeout_ms; /*!< Abort network operation if it is not completed after this value, in milliseconds (defaults to 10s) */
202+
bool disable_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 */
191203
} esp_mqtt_client_config_t;
192204

193205
/**
@@ -347,6 +359,14 @@ esp_err_t esp_mqtt_set_config(esp_mqtt_client_handle_t client, const esp_mqtt_cl
347359
*/
348360
esp_err_t esp_mqtt_client_register_event(esp_mqtt_client_handle_t client, esp_mqtt_event_id_t event, esp_event_handler_t event_handler, void* event_handler_arg);
349361

362+
/**
363+
* @brief Get outbox size
364+
*
365+
* @param client mqtt client handle
366+
* @return outbox size
367+
*/
368+
int esp_mqtt_client_get_outbox_size(esp_mqtt_client_handle_t client);
369+
350370
#ifdef __cplusplus
351371
}
352372
#endif //__cplusplus

Diff for: tools/sdk/include/mqtt/mqtt_config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
#endif
8585
#endif
8686

87-
#ifdef CONFIG_OUTBOX_EXPIRED_TIMEOUT_MS
88-
#define OUTBOX_EXPIRED_TIMEOUT_MS CONFIG_OUTBOX_EXPIRED_TIMEOUT_MS
87+
#ifdef CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
88+
#define OUTBOX_EXPIRED_TIMEOUT_MS CONFIG_MQTT_OUTBOX_EXPIRED_TIMEOUT_MS
8989
#else
9090
#define OUTBOX_EXPIRED_TIMEOUT_MS (30*1000)
9191
#endif

Diff for: tools/sdk/include/mqtt/mqtt_supported_features.h

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)
5757
// Features supported in 4.3
5858
#define MQTT_SUPPORTED_FEATURE_DIGITAL_SIGNATURE
59+
#define MQTT_SUPPORTED_FEATURE_TRANSPORT_SOCK_ERRNO_REPORTING
5960
#endif
6061

6162
#endif /* ESP_IDF_VERSION */

Diff for: tools/sdk/lib/libapp_trace.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libapp_update.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libasio.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libbootloader_support.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libbt.a

1.21 KB
Binary file not shown.

Diff for: tools/sdk/lib/libcoap.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libconsole.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libcxx.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libdriver.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libefuse.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp-tls.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp32-camera.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp32.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_adc_cal.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_event.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_http_client.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_http_server.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_https_ota.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_https_server.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_ringbuf.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libesp_websocket_client.a

880 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libespcoredump.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libethernet.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libexpat.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libface_detection.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libface_recognition.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libfatfs.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libfb_gfx.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libfreemodbus.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libfreertos.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libheap.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libimage_util.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libjsmn.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libjson.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/liblibsodium.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/liblog.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/liblwip.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libmbedtls.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libmdns.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libmicro-ecc.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libmqtt.a

2.25 KB
Binary file not shown.

Diff for: tools/sdk/lib/libnewlib.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libnghttp.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libnvs_flash.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libopenssl.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libprotobuf-c.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libprotocomm.a

1.16 KB
Binary file not shown.

Diff for: tools/sdk/lib/libpthread.a

1.01 KB
Binary file not shown.

Diff for: tools/sdk/lib/libsdmmc.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libsmartconfig_ack.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libsoc.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libspi_flash.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libspiffs.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libtcp_transport.a

408 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libtcpip_adapter.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libulp.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libunity.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libvfs.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libwear_levelling.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libwifi_provisioning.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libwpa_supplicant.a

0 Bytes
Binary file not shown.

Diff for: tools/sdk/lib/libxtensa-debug-module.a

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)