Skip to content

Commit 2fbbae7

Browse files
author
me-no-dev
committed
IDF release/v4.0 e7ac221b4
1 parent d2761a9 commit 2fbbae7

Some content is hidden

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

94 files changed

+399
-279
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ compiler.S.flags=-c -g3 -x assembler-with-cpp -MMD -mlongcalls
3535

3636
compiler.c.elf.cmd=xtensa-esp32-elf-gcc
3737
compiler.c.elf.flags=-nostdlib "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.libgcc.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-data.ld -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u call_user_start_cpu0 -u __cxa_guard_dummy -u ld_include_panic_highint_hdl -u newlib_include_locks_impl -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -fno-rtti -mfix-esp32-psram-cache-issue
38-
compiler.c.elf.libs=-lgcc -lesp_event -lvfs -lmqtt -ldriver -lcoexist -lsoc -lxtensa -lwear_levelling -lprotobuf-c -lconsole -ldl -lespcoredump -lesp32 -lfb_gfx -lesp_local_ctrl -lulp -lesp_gdbstub -ltcpip_adapter -lopenssl -lbtdm_app -lesp_adc_cal -lmesh -lspiffs -lesp_common -lesp_websocket_client -lsdmmc -lapp_update -lesp_ringbuf -lesp_http_server -lspi_flash -lpp -lhal -lespnow -lbt -lexpat -lmdns -lesp_wifi -lfatfs -lesp-tls -ljsmn -lesp32-camera -lfreemodbus -llog -lwifi_provisioning -lunity -llwip -ljson -lwpa_supplicant -lcxx -lbootloader_support -lesp_rom -lface_recognition -lesp_https_ota -lface_detection -lphy -lm -lnghttp -lcoap -lnet80211 -llibsodium -lfr -lfd -lefuse -ltcp_transport -lmbedtls -lheap -lcore -lpthread -lprotocomm -lasio -lnvs_flash -lapp_trace -lnewlib -lod -lsmartconfig -lesp_http_client -lfreertos -limage_util -lrtc -lesp_eth -lc -lstdc++
38+
compiler.c.elf.libs=-lgcc -lesp_ringbuf -lfatfs -lcore -lesp_websocket_client -lspiffs -lconsole -lbtdm_app -lnet80211 -lfd -lasio -lheap -lvfs -ljson -lesp_http_client -lesp_event -lnewlib -lesp_gdbstub -lapp_update -llog -lesp32 -lesp_rom -lesp_eth -lfb_gfx -lod -lcoap -lsdmmc -lface_detection -limage_util -lphy -lopenssl -lesp_adc_cal -lface_recognition -lprotocomm -llwip -lspi_flash -lxtensa -ltcp_transport -ldl -lesp_wifi -lwear_levelling -lpp -lfr -lpthread -lrtc -lcoexist -lsmartconfig -lbootloader_support -lwpa_supplicant -lsoc -lefuse -lmqtt -lwifi_provisioning -lfreemodbus -lunity -lesp_https_ota -lcxx -lmdns -lbt -lhal -lespcoredump -ltcpip_adapter -lesp_common -lfreertos -lesp_local_ctrl -llibsodium -lexpat -lmesh -lespnow -lnvs_flash -lesp32-camera -lprotobuf-c -lnghttp -lapp_trace -ljsmn -ldriver -lm -lulp -lmbedtls -lesp-tls -lesp_http_server -lc -lstdc++
3939

4040
compiler.as.cmd=xtensa-esp32-elf-as
4141

tools/platformio-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
],
187187

188188
LIBS=[
189-
"-lgcc", "-lesp_event", "-lvfs", "-lmqtt", "-ldriver", "-lcoexist", "-lsoc", "-lxtensa", "-lwear_levelling", "-lprotobuf-c", "-lconsole", "-ldl", "-lespcoredump", "-lesp32", "-lfb_gfx", "-lesp_local_ctrl", "-lulp", "-lesp_gdbstub", "-ltcpip_adapter", "-lopenssl", "-lbtdm_app", "-lesp_adc_cal", "-lmesh", "-lspiffs", "-lesp_common", "-lesp_websocket_client", "-lsdmmc", "-lapp_update", "-lesp_ringbuf", "-lesp_http_server", "-lspi_flash", "-lpp", "-lhal", "-lespnow", "-lbt", "-lexpat", "-lmdns", "-lesp_wifi", "-lfatfs", "-lesp-tls", "-ljsmn", "-lesp32-camera", "-lfreemodbus", "-llog", "-lwifi_provisioning", "-lunity", "-llwip", "-ljson", "-lwpa_supplicant", "-lcxx", "-lbootloader_support", "-lesp_rom", "-lface_recognition", "-lesp_https_ota", "-lface_detection", "-lphy", "-lm", "-lnghttp", "-lcoap", "-lnet80211", "-llibsodium", "-lfr", "-lfd", "-lefuse", "-ltcp_transport", "-lmbedtls", "-lheap", "-lcore", "-lpthread", "-lprotocomm", "-lasio", "-lnvs_flash", "-lapp_trace", "-lnewlib", "-lod", "-lsmartconfig", "-lesp_http_client", "-lfreertos", "-limage_util", "-lrtc", "-lesp_eth", "-lc", "-lstdc++"
189+
"-lgcc", "-lesp_ringbuf", "-lfatfs", "-lcore", "-lesp_websocket_client", "-lspiffs", "-lconsole", "-lbtdm_app", "-lnet80211", "-lfd", "-lasio", "-lheap", "-lvfs", "-ljson", "-lesp_http_client", "-lesp_event", "-lnewlib", "-lesp_gdbstub", "-lapp_update", "-llog", "-lesp32", "-lesp_rom", "-lesp_eth", "-lfb_gfx", "-lod", "-lcoap", "-lsdmmc", "-lface_detection", "-limage_util", "-lphy", "-lopenssl", "-lesp_adc_cal", "-lface_recognition", "-lprotocomm", "-llwip", "-lspi_flash", "-lxtensa", "-ltcp_transport", "-ldl", "-lesp_wifi", "-lwear_levelling", "-lpp", "-lfr", "-lpthread", "-lrtc", "-lcoexist", "-lsmartconfig", "-lbootloader_support", "-lwpa_supplicant", "-lsoc", "-lefuse", "-lmqtt", "-lwifi_provisioning", "-lfreemodbus", "-lunity", "-lesp_https_ota", "-lcxx", "-lmdns", "-lbt", "-lhal", "-lespcoredump", "-ltcpip_adapter", "-lesp_common", "-lfreertos", "-lesp_local_ctrl", "-llibsodium", "-lexpat", "-lmesh", "-lespnow", "-lnvs_flash", "-lesp32-camera", "-lprotobuf-c", "-lnghttp", "-lapp_trace", "-ljsmn", "-ldriver", "-lm", "-lulp", "-lmbedtls", "-lesp-tls", "-lesp_http_server", "-lc", "-lstdc++"
190190
],
191191

192192
LIBSOURCE_DIRS=[

tools/sdk/bin/bootloader_dio_40m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dio_80m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dout_40m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dout_80m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qio_40m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qio_80m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qout_40m.bin

0 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qout_80m.bin

0 Bytes
Binary file not shown.

tools/sdk/include/config/sdkconfig.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@
373373
#define CONFIG_PTHREAD_TASK_NAME_DEFAULT "pthread"
374374
#define CONFIG_SPI_FLASH_ROM_DRIVER_PATCH 1
375375
#define CONFIG_SPI_FLASH_DANGEROUS_WRITE_ABORTS 1
376+
#define CONFIG_SPI_FLASH_YIELD_DURING_ERASE 1
377+
#define CONFIG_SPI_FLASH_ERASE_YIELD_DURATION_MS 20
378+
#define CONFIG_SPI_FLASH_ERASE_YIELD_TICKS 1
376379
#define CONFIG_SPI_FLASH_SUPPORT_ISSI_CHIP 1
377380
#define CONFIG_SPI_FLASH_SUPPORT_GD_CHIP 1
378381
#define CONFIG_SPIFFS_MAX_PARTITIONS 3
@@ -2186,5 +2189,5 @@
21862189
#define CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP
21872190
#endif
21882191

2189-
#define CONFIG_ARDUINO_IDF_COMMIT "4c81978a3"
2192+
#define CONFIG_ARDUINO_IDF_COMMIT "e7ac221b4"
21902193
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.0"

tools/sdk/include/driver/driver/dac.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ extern "C" {
2121

2222
#include <stdint.h>
2323
#include "esp_err.h"
24+
#include "driver/gpio.h"
2425
#include "soc/dac_periph.h"
2526

2627
typedef enum {

tools/sdk/include/driver/driver/sigmadelta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ esp_err_t sigmadelta_set_prescale(sigmadelta_channel_t channel, uint8_t prescale
101101
*/
102102
esp_err_t sigmadelta_set_pin(sigmadelta_channel_t channel, gpio_num_t gpio_num);
103103

104-
#ifdef _cplusplus
104+
#ifdef __cplusplus
105105
}
106106
#endif
107107

tools/sdk/include/esp_common/esp_idf_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
/** Minor version number (x.X.x) */
2424
#define ESP_IDF_VERSION_MINOR 0
2525
/** Patch version number (x.x.X) */
26-
#define ESP_IDF_VERSION_PATCH 0
26+
#define ESP_IDF_VERSION_PATCH 1
2727

2828
/**
2929
* Macro to convert IDF version number into an integer

tools/sdk/include/esp_eth/esp_eth_mac.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,30 @@ struct esp_eth_mac_s {
7373
*/
7474
esp_err_t (*deinit)(esp_eth_mac_t *mac);
7575

76+
/**
77+
* @brief Start Ethernet MAC
78+
*
79+
* @param[in] mac: Ethernet MAC instance
80+
*
81+
* @return
82+
* - ESP_OK: start Ethernet MAC successfully
83+
* - ESP_FAIL: start Ethernet MAC failed because some other error occurred
84+
*
85+
*/
86+
esp_err_t (*start)(esp_eth_mac_t *mac);
87+
88+
/**
89+
* @brief Stop Ethernet MAC
90+
*
91+
* @param[in] mac: Ethernet MAC instance
92+
*
93+
* @return
94+
* - ESP_OK: stop Ethernet MAC successfully
95+
* - ESP_FAIL: stop Ethernet MAC failed because some error occurred
96+
*
97+
*/
98+
esp_err_t (*stop)(esp_eth_mac_t *mac);
99+
76100
/**
77101
* @brief Transmit packet from Ethernet MAC
78102
*
@@ -251,6 +275,7 @@ typedef struct {
251275
} eth_mac_config_t;
252276

253277
#define ETH_MAC_FLAG_WORK_WITH_CACHE_DISABLE (1 << 0) /*!< MAC driver can work when cache is disabled */
278+
#define ETH_MAC_FLAG_PIN_TO_CORE (1 << 1) /*!< Pin MAC task to the CPU core where driver installation happened */
254279

255280
/**
256281
* @brief Default configuration for Ethernet MAC object

tools/sdk/include/esp_wifi/esp_wifi.h

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,21 @@ esp_err_t esp_wifi_get_config(wifi_interface_t interface, wifi_config_t *conf);
805805
*/
806806
esp_err_t esp_wifi_ap_get_sta_list(wifi_sta_list_t *sta);
807807

808+
/**
809+
* @brief Get AID of STA connected with soft-AP
810+
*
811+
* @param mac STA's mac address
812+
* @param[out] aid Store the AID corresponding to STA mac
813+
*
814+
* @return
815+
* - ESP_OK: succeed
816+
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
817+
* - ESP_ERR_INVALID_ARG: invalid argument
818+
* - ESP_ERR_NOT_FOUND: Requested resource not found
819+
* - ESP_ERR_WIFI_MODE: WiFi mode is wrong
820+
* - ESP_ERR_WIFI_CONN: WiFi internal error, the station/soft-AP control block is invalid
821+
*/
822+
esp_err_t esp_wifi_ap_get_sta_aid(const uint8_t mac[6], uint16_t *aid);
808823

809824
/**
810825
* @brief Set the WiFi API configuration storage type
@@ -861,28 +876,59 @@ esp_err_t esp_wifi_set_vendor_ie(bool enable, wifi_vendor_ie_type_t type, wifi_v
861876
esp_err_t esp_wifi_set_vendor_ie_cb(esp_vendor_ie_cb_t cb, void *ctx);
862877

863878
/**
864-
* @brief Set maximum WiFi transmitting power
865-
*
866-
* @param power Maximum WiFi transmitting power, unit is 0.25dBm, range is [40, 82] corresponding to 10dBm - 20.5dBm here.
879+
* @brief Set maximum transmitting power after WiFi start.
880+
*
881+
* @attention 1. Maximum power before wifi startup is limited by PHY init data bin.
882+
* @attention 2. The value set by this API will be mapped to the max_tx_power of the structure wifi_country_t variable.
883+
* @attention 3. Mapping Table {Power, max_tx_power} = {{8, 2}, {20, 5}, {28, 7}, {34, 8}, {44, 11},
884+
* {52, 13}, {56, 14}, {60, 15}, {66, 16}, {72, 18}, {78, 20}}.
885+
* @attention 4. Param power unit is 0.25dBm, range is [8, 78] corresponding to 2dBm - 20dBm.
886+
* @attention 5. Relationship between set value and actual value. As follows:
887+
* +------------+--------------+
888+
* | set value | actual value |
889+
* +============+==============+
890+
* | [8, 19] | 8 |
891+
* +------------+--------------+
892+
* | [20, 27] | 20 |
893+
* +------------+--------------+
894+
* | [28, 33] | 28 |
895+
* +------------+--------------+
896+
* | [34, 43] | 34 |
897+
* +------------+--------------+
898+
* | [44, 51] | 44 |
899+
* +------------+--------------+
900+
* | [52, 55] | 52 |
901+
* +------------+--------------+
902+
* | [56, 59] | 56 |
903+
* +------------+--------------+
904+
* | [60, 65] | 60 |
905+
* +------------+--------------+
906+
* | [66, 71] | 66 |
907+
* +------------+--------------+
908+
* | [72, 77] | 72 |
909+
* +------------+--------------+
910+
* | 78 | 78 |
911+
* +------------+--------------+
912+
* @param power Maximum WiFi transmitting power.
867913
*
868914
* @return
869915
* - ESP_OK: succeed
870916
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
871917
* - ESP_ERR_WIFI_NOT_START: WiFi is not started by esp_wifi_start
872-
* - ESP_ERR_WIFI_NOT_ARG: invalid argument
918+
* - ESP_ERR_WIFI_ARG: invalid argument, e.g. parameter is out of range
873919
*/
874920
esp_err_t esp_wifi_set_max_tx_power(int8_t power);
875921

876922
/**
877-
* @brief Get maximum WiFi transmiting power
923+
* @brief Get maximum transmiting power after WiFi start
878924
*
879-
* @param power Maximum WiFi transmitting power, unit is 0.25dBm.
925+
* @param power Maximum WiFi transmitting power, unit is 0.25dBm.
880926
*
881927
* @return
882928
* - ESP_OK: succeed
883929
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
884930
* - ESP_ERR_WIFI_NOT_START: WiFi is not started by esp_wifi_start
885-
* - ESP_ERR_INVALID_ARG: invalid argument
931+
* - ESP_ERR_WIFI_ARG: invalid argument
886932
*/
887933
esp_err_t esp_wifi_get_max_tx_power(int8_t *power);
888934

tools/sdk/include/esp_wifi/esp_wifi_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ typedef enum {
9494
WIFI_REASON_ASSOC_FAIL = 203,
9595
WIFI_REASON_HANDSHAKE_TIMEOUT = 204,
9696
WIFI_REASON_CONNECTION_FAIL = 205,
97+
WIFI_REASON_AUTH_CHANGED = 206,
9798
} wifi_err_reason_t;
9899

99100
typedef enum {
@@ -115,7 +116,7 @@ typedef struct {
115116
} wifi_active_scan_time_t;
116117

117118
/** @brief Aggregate of active & passive scan time per channel */
118-
typedef union {
119+
typedef struct {
119120
wifi_active_scan_time_t active; /**< active scan time per channel, units: millisecond. */
120121
uint32_t passive; /**< passive scan time per channel, units: millisecond, values above 1500ms may
121122
cause station to disconnect from AP and are not recommended. */

tools/sdk/include/lwip/lwipopts.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,11 @@
538538
*/
539539
#define LWIP_TCP_KEEPALIVE 1
540540

541+
/**
542+
* LWIP_SO_LINGER==1: Enable SO_LINGER processing.
543+
*/
544+
#define LWIP_SO_LINGER CONFIG_LWIP_SO_LINGER
545+
541546
/**
542547
* LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
543548
*/

tools/sdk/include/mqtt/mqtt_client.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ typedef struct esp_mqtt_client *esp_mqtt_client_handle_t;
3737
*
3838
*/
3939
typedef enum {
40+
MQTT_EVENT_ANY = -1,
4041
MQTT_EVENT_ERROR = 0, /*!< on error event, additional context: connection return code, error handle from esp_tls (if supported) */
4142
MQTT_EVENT_CONNECTED, /*!< connected event, additional context: session_present flag */
4243
MQTT_EVENT_DISCONNECTED, /*!< disconnected event */
@@ -88,6 +89,15 @@ typedef enum {
8889
MQTT_TRANSPORT_OVER_WSS /*!< MQTT over Websocket Secure, using scheme: ``wss`` */
8990
} esp_mqtt_transport_t;
9091

92+
/**
93+
* MQTT protocol version used for connection
94+
*/
95+
typedef enum {
96+
MQTT_PROTOCOL_UNDEFINED = 0,
97+
MQTT_PROTOCOL_V_3_1,
98+
MQTT_PROTOCOL_V_3_1_1
99+
} esp_mqtt_protocol_ver_t;
100+
91101
/**
92102
* @brief MQTT error code structure to be passed as a contextual information into ERROR event
93103
*
@@ -155,7 +165,7 @@ typedef struct {
155165
void *user_context; /*!< pass user context to this option, then can receive that context in ``event->user_context`` */
156166
int task_prio; /*!< MQTT task priority, default is 5, can be changed in ``make menuconfig`` */
157167
int task_stack; /*!< MQTT task stack size, default is 6144 bytes, can be changed in ``make menuconfig`` */
158-
int buffer_size; /*!< size of MQTT send/receive buffer, default is 1024 */
168+
int buffer_size; /*!< size of MQTT send/receive buffer, default is 1024 (only receive buffer size if ``out_buffer_size`` defined) */
159169
const char *cert_pem; /*!< Pointer to certificate data in PEM or DER format for server verify (with SSL), default is NULL, not required to verify the server. PEM-format must have a terminating NULL-character. DER-format requires the length to be passed in cert_len. */
160170
size_t cert_len; /*!< Length of the buffer pointed to by cert_pem. May be 0 for null-terminated pem */
161171
const char *client_cert_pem; /*!< Pointer to certificate data in PEM or DER format for SSL mutual authentication, default is NULL, not required if mutual authentication is not needed. If it is not NULL, also `client_key_pem` has to be provided. PEM-format must have a terminating NULL-character. DER-format requires the length to be passed in client_cert_len. */
@@ -170,6 +180,8 @@ typedef struct {
170180
const char **alpn_protos; /*!< NULL-terminated list of supported application protocols to be used for ALPN */
171181
const char *clientkey_password; /*!< Client key decryption password string */
172182
int clientkey_password_len; /*!< String length of the password pointed to by clientkey_password */
183+
esp_mqtt_protocol_ver_t protocol_ver; /*!< MQTT protocol version used for connection, defaults to value from menuconfig*/
184+
int out_buffer_size; /*!< size of MQTT output buffer. If not defined, both output and input buffers have the same size defined as ``buffer_size`` */
173185
} esp_mqtt_client_config_t;
174186

175187
/**
@@ -213,6 +225,15 @@ esp_err_t esp_mqtt_client_start(esp_mqtt_client_handle_t client);
213225
*/
214226
esp_err_t esp_mqtt_client_reconnect(esp_mqtt_client_handle_t client);
215227

228+
/**
229+
* @brief This api is typically used to force disconnection from the broker
230+
*
231+
* @param client mqtt client handle
232+
*
233+
* @return ESP_OK on success
234+
*/
235+
esp_err_t esp_mqtt_client_disconnect(esp_mqtt_client_handle_t client);
236+
216237
/**
217238
* @brief Stops mqtt client tasks
218239
*
@@ -261,6 +282,9 @@ int esp_mqtt_client_unsubscribe(esp_mqtt_client_handle_t client, const char *top
261282
* @brief Client to send a publish message to the broker
262283
*
263284
* Notes:
285+
* - This API might block for several seconds, either due to network timeout (10s)
286+
* or if publishing payloads longer than internal buffer (due to message
287+
* fragmentation)
264288
* - Client doesn't have to be connected to send publish message
265289
* (although it would drop all qos=0 messages, qos>1 messages would be enqueued)
266290
* - It is thread safe, please refer to `esp_mqtt_client_subscribe` for details

tools/sdk/include/mqtt/mqtt_config.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
#include "sdkconfig.h"
1010

11-
#define MQTT_PROTOCOL_311 CONFIG_MQTT_PROTOCOL_311
11+
#ifdef CONFIG_MQTT_PROTOCOL_311
12+
#define MQTT_PROTOCOL_311
13+
#endif
14+
1215
#define MQTT_RECON_DEFAULT_MS (10*1000)
1316
#define MQTT_POLL_READ_TIMEOUT_MS (1000)
1417

@@ -24,7 +27,12 @@
2427
#define MQTT_MAX_PASSWORD_LEN 65
2528
#define MQTT_MAX_LWT_TOPIC 32
2629
#define MQTT_MAX_LWT_MSG 128
30+
31+
#if CONFIG_MQTT_TASK_PRIORITY
32+
#define MQTT_TASK_PRIORITY CONFIG_MQTT_TASK_PRIORITY
33+
#else
2734
#define MQTT_TASK_PRIORITY 5
35+
#endif
2836

2937
#if CONFIG_MQTT_TASK_STACK_SIZE
3038
#define MQTT_TASK_STACK CONFIG_MQTT_TASK_STACK_SIZE

tools/sdk/include/tcp_transport/esp_transport_ws.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ typedef enum ws_transport_opcodes {
2020
WS_TRANSPORT_OPCODES_CLOSE = 0x08,
2121
WS_TRANSPORT_OPCODES_PING = 0x09,
2222
WS_TRANSPORT_OPCODES_PONG = 0x0a,
23+
WS_TRANSPORT_OPCODES_FIN = 0x80,
2324
} ws_transport_opcodes_t;
2425

2526
/**

0 commit comments

Comments
 (0)