Skip to content

Commit f61963d

Browse files
committed
IDF release/v3.3 b65a37795
1 parent bb2d98a commit f61963d

Some content is hidden

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

70 files changed

+54
-172
lines changed

tools/sdk/include/config/sdkconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,5 +397,5 @@
397397
#define CONFIG_BTDM_MODEM_SLEEP_MODE_ORIG 1
398398
#define CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR 1
399399
#define CONFIG_FATFS_API_ENCODING_ANSI_OEM 1
400-
#define CONFIG_ARDUINO_IDF_COMMIT "6aaddf972"
400+
#define CONFIG_ARDUINO_IDF_COMMIT "b65a37795"
401401
#define CONFIG_ARDUINO_IDF_BRANCH "release/v3.3"

tools/sdk/include/mqtt/mqtt_client.h

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
#include <string.h>
1313
#include "esp_err.h"
1414

15-
#include "mqtt_config.h"
1615
#include "esp_event.h"
17-
#if CONFIG_ESP_TLS_USE_DS_PERIPHERAL
18-
#include "rsa_sign_alt.h"
19-
#endif
2016

2117
#ifdef __cplusplus
2218
extern "C" {
@@ -61,6 +57,13 @@ typedef enum {
6157
and current data offset updating.
6258
*/
6359
MQTT_EVENT_BEFORE_CONNECT, /*!< The event occurs before connecting */
60+
MQTT_EVENT_DELETED, /*!< Notification on delete of one message from the internal outbox,
61+
if the message couldn't have been sent and acknowledged before expiring
62+
defined in OUTBOX_EXPIRED_TIMEOUT_MS.
63+
(events are not posted upon deletion of successfully acknowledged messages)
64+
- This event id is posted only if MQTT_REPORT_DELETED_MESSAGES==1
65+
- Additional context: msg_id (id of the deleted message).
66+
*/
6467
} esp_mqtt_event_id_t;
6568

6669
/**
@@ -306,8 +309,10 @@ int esp_mqtt_client_unsubscribe(esp_mqtt_client_handle_t client, const char *top
306309
* - This API might block for several seconds, either due to network timeout (10s)
307310
* or if publishing payloads longer than internal buffer (due to message
308311
* fragmentation)
309-
* - Client doesn't have to be connected to send publish message
310-
* (although it would drop all qos=0 messages, qos>1 messages would be enqueued)
312+
* - Client doesn't have to be connected for this API to work, enqueueing the messages
313+
* with qos>1 (returning -1 for all the qos=0 messages if disconnected).
314+
* If MQTT_SKIP_PUBLISH_IF_DISCONNECTED is enabled, this API will not attempt to publish
315+
* when the client is not connected and will always return -1.
311316
* - It is thread safe, please refer to `esp_mqtt_client_subscribe` for details
312317
*
313318
* @param client mqtt client handle
@@ -322,6 +327,27 @@ int esp_mqtt_client_unsubscribe(esp_mqtt_client_handle_t client, const char *top
322327
*/
323328
int esp_mqtt_client_publish(esp_mqtt_client_handle_t client, const char *topic, const char *data, int len, int qos, int retain);
324329

330+
/**
331+
* @brief Enqueue a message to the outbox, to be sent later. Typically used for messages with qos>0, but could
332+
* be also used for qos=0 messages if store=true.
333+
*
334+
* This API generates and stores the publish message into the internal outbox and the actual sending
335+
* to the network is performed in the mqtt-task context (in contrast to the esp_mqtt_client_publish()
336+
* which sends the publish message immediately in the user task's context).
337+
* Thus, it could be used as a non blocking version of esp_mqtt_client_publish().
338+
*
339+
* @param client mqtt client handle
340+
* @param topic topic string
341+
* @param data payload string (set to NULL, sending empty payload message)
342+
* @param len data length, if set to 0, length is calculated from payload string
343+
* @param qos qos of publish message
344+
* @param retain retain flag
345+
* @param store if true, all messages are enqueued; otherwise only qos1 and qos 2 are enqueued
346+
*
347+
* @return message_id if queued successfully, -1 otherwise
348+
*/
349+
int esp_mqtt_client_enqueue(esp_mqtt_client_handle_t client, const char *topic, const char *data, int len, int qos, int retain, bool store);
350+
325351
/**
326352
* @brief Destroys the client handle
327353
*

tools/sdk/include/mqtt/mqtt_config.h

Lines changed: 0 additions & 99 deletions
This file was deleted.

tools/sdk/include/mqtt/mqtt_supported_features.h

Lines changed: 0 additions & 63 deletions
This file was deleted.

tools/sdk/ld/esp32.project.ld

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

tools/sdk/ld/esp32.rom.ld

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ PROVIDE ( jd_prepare = 0x40060fa8 );
124124
PROVIDE ( ke_env = 0x3ffb93cc );
125125
PROVIDE ( ke_handler_search = 0x4001a430 );
126126
PROVIDE ( ke_task_env = 0x3ffb81d4 );
127+
PROVIDE ( ke_event_env = 0x3ffb81a4 );
127128
PROVIDE ( lb_default_handler = 0x3ff982b8 );
128129
PROVIDE ( lb_default_state_tab_p_get = 0x4001c198 );
129130
PROVIDE ( lb_env = 0x3ffb9424 );
@@ -1632,5 +1633,22 @@ PROVIDE ( prbs_64bytes = 0x3ff98992 );
16321633
PROVIDE ( nvds_env = 0x3ffb8364 );
16331634
PROVIDE ( nvds_magic_number = 0x3ff9912a );
16341635
PROVIDE ( TASK_DESC_LLD = 0x3ff98b58 );
1636+
PROVIDE ( ld_acl_clk_isr = 0x40030cf8 );
1637+
PROVIDE ( ld_acl_evt_canceled_cbk = 0x40033944 );
1638+
PROVIDE ( ld_acl_evt_stop_cbk = 0x40033870 );
1639+
PROVIDE ( ld_acl_evt_start_cbk = 0x40030ab0 );
1640+
PROVIDE ( ld_acl_test_mode_update = 0x40032050 );
1641+
PROVIDE ( ld_acl_resched = 0x40033814 );
1642+
PROVIDE ( ld_acl_rx_isr = 0x40033aa8 );
1643+
PROVIDE ( lc_acl_disc_ind_handler = 0x4002f270 );
1644+
PROVIDE ( lc_pca_sscan_start_req_handler = 0x40029b34 );
1645+
PROVIDE ( lmp_feats_req_ext_handler = 0x4002ccb0 );
1646+
PROVIDE ( ld_pscan_em_init = 0x4003e5e8 );
1647+
PROVIDE ( ld_acl_rsw_start = 0x40032e90 );
1648+
PROVIDE ( ld_acl_sniff_enter = 0x40031244 );
1649+
PROVIDE ( ld_acl_sniff_trans_sched = 0x40033734 );
1650+
PROVIDE ( lc_pwr_decr_ind_handler = 0x4002859c );
1651+
PROVIDE ( lc_pwr_incr_ind_handler = 0x400284a8 );
1652+
PROVIDE ( lc_pwr_max_ind_handler = 0x40028690 );
16351653
/* Above are static data, but can be used, not generated by script >>>>> btdm data */
16361654

tools/sdk/lib/libapp_trace.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libasio.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libbootloader_support.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libbt.a

-204 Bytes
Binary file not shown.

tools/sdk/lib/libbtdm_app.a

11.8 KB
Binary file not shown.

tools/sdk/lib/libcoap.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libconsole.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libcxx.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libdriver.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libefuse.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp-tls.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp32-camera.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp32.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_adc_cal.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_event.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_http_client.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_http_server.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_https_ota.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_https_server.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libesp_ringbuf.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/lib/libespcoredump.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libethernet.a

-4 Bytes
Binary file not shown.

tools/sdk/lib/libexpat.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libface_detection.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libface_recognition.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libfatfs.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libfb_gfx.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libfreemodbus.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libfreertos.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libheap.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libimage_util.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libjsmn.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libjson.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblibsodium.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblog.a

0 Bytes
Binary file not shown.

tools/sdk/lib/liblwip.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libmbedtls.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libmdns.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libmicro-ecc.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libmqtt.a

11.1 KB
Binary file not shown.

tools/sdk/lib/libnewlib.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libnghttp.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libnvs_flash.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libopenssl.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libprotobuf-c.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libprotocomm.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libpthread.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libsdmmc.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libsmartconfig_ack.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libsoc.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libspi_flash.a

4.44 KB
Binary file not shown.

tools/sdk/lib/libspiffs.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libtcp_transport.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libtcpip_adapter.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libulp.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libunity.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libvfs.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libwear_levelling.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libwifi_provisioning.a

0 Bytes
Binary file not shown.

tools/sdk/lib/libwpa_supplicant.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/sdkconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ CONFIG_BTDM_CONTROLLER_FULL_SCAN_SUPPORTED=y
221221
CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_SUPPORTED=y
222222
CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_NUM=100
223223
CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD=20
224-
CONFIG_BTDM_COEX_BT_OPTIONS=
225224
CONFIG_BLUEDROID_ENABLED=y
226225
CONFIG_BLUEDROID_PINNED_TO_CORE_0=y
227226
CONFIG_BLUEDROID_PINNED_TO_CORE_1=
@@ -445,6 +444,7 @@ CONFIG_ESP32_XTAL_FREQ=0
445444
CONFIG_DISABLE_BASIC_ROM_CONSOLE=
446445
CONFIG_ESP_TIMER_PROFILING=
447446
CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS=
447+
CONFIG_ESP32_COMPATIBLE_PRE_V3_1_BOOTLOADERS=
448448
CONFIG_ESP_ERR_TO_NAME_LOOKUP=y
449449
CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5
450450

0 commit comments

Comments
 (0)