Skip to content

Commit 42d4ec0

Browse files
committed
IDF release/v4.4 5e6cffbb14
1 parent 617892a commit 42d4ec0

File tree

121 files changed

+566
-450
lines changed

Some content is hidden

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

121 files changed

+566
-450
lines changed

platform.txt

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

tools/platformio-build-esp32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"UNITY_INCLUDE_CONFIG_H",
323323
"WITH_POSIX",
324324
"_GNU_SOURCE",
325-
("IDF_VER", '\\"v4.4.1-238-gae0e3e2e2a\\"'),
325+
("IDF_VER", '\\"v4.4.1-262-g5e6cffbb14\\"'),
326326
"ESP_PLATFORM",
327327
"_POSIX_READER_WRITER_LOCKS",
328328
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32c3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
"UNITY_INCLUDE_CONFIG_H",
317317
"WITH_POSIX",
318318
"_GNU_SOURCE",
319-
("IDF_VER", '\\"v4.4.1-238-gae0e3e2e2a\\"'),
319+
("IDF_VER", '\\"v4.4.1-262-g5e6cffbb14\\"'),
320320
"ESP_PLATFORM",
321321
"_POSIX_READER_WRITER_LOCKS",
322322
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
"UNITY_INCLUDE_CONFIG_H",
305305
"WITH_POSIX",
306306
"_GNU_SOURCE",
307-
("IDF_VER", '\\"v4.4.1-238-gae0e3e2e2a\\"'),
307+
("IDF_VER", '\\"v4.4.1-262-g5e6cffbb14\\"'),
308308
"ESP_PLATFORM",
309309
"_POSIX_READER_WRITER_LOCKS",
310310
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"UNITY_INCLUDE_CONFIG_H",
322322
"WITH_POSIX",
323323
"_GNU_SOURCE",
324-
("IDF_VER", '\\"v4.4.1-238-gae0e3e2e2a\\"'),
324+
("IDF_VER", '\\"v4.4.1-262-g5e6cffbb14\\"'),
325325
"ESP_PLATFORM",
326326
"_POSIX_READER_WRITER_LOCKS",
327327
"ARDUINO_ARCH_ESP32",

tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_bt_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ typedef union {
347347
struct read_rmt_name_param {
348348
esp_bt_status_t stat; /*!< read Remote Name status */
349349
uint8_t rmt_name[ESP_BT_GAP_MAX_BDNAME_LEN + 1]; /*!< Remote device name */
350+
esp_bd_addr_t bda; /*!< remote bluetooth device address*/
350351
} read_rmt_name; /*!< read Remote Name parameter struct */
351352

352353
/**

tools/sdk/esp32/include/esp_rainmaker/include/esp_rmaker_core.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,20 @@ esp_err_t esp_rmaker_system_service_enable(esp_rmaker_system_serv_config_t *conf
917917
*/
918918
bool esp_rmaker_local_ctrl_service_started(void);
919919

920+
/**
921+
* Enable Default RainMaker OTA Firmware Upgrade
922+
*
923+
* This enables the default recommended RainMaker OTA Firmware Upgrade, which is
924+
* "Using the Topics", which allows performing OTA from Dashboard.
925+
* This OTA can be triggered by Admin Users only.
926+
* On Public RainMaker deployment, for nodes using "Self Claiming", since there
927+
* is no associated admin user, the Primary user will automatically become the admin
928+
* and can perform OTA from dashboard.
929+
*
930+
* @return ESP_OK on success
931+
* @return error on failure
932+
*/
933+
esp_err_t esp_rmaker_ota_enable_default(void);
920934
#ifdef __cplusplus
921935
}
922936
#endif

tools/sdk/esp32/include/json_generator/upstream/json_generator.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ int json_gen_end_array(json_gen_str_t *jstr);
174174
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
175175
* added after that
176176
*/
177-
int json_gen_push_object(json_gen_str_t *jstr, char *name);
177+
int json_gen_push_object(json_gen_str_t *jstr, const char *name);
178178

179179
/** Pop a named JSON object
180180
*
@@ -208,7 +208,7 @@ int json_gen_pop_object(json_gen_str_t *jstr);
208208
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
209209
* added after that.
210210
*/
211-
int json_gen_push_object_str(json_gen_str_t *jstr, char *name, char *object_str);
211+
int json_gen_push_object_str(json_gen_str_t *jstr, const char *name, const char *object_str);
212212

213213
/** Push a named JSON array
214214
*
@@ -223,7 +223,7 @@ int json_gen_push_object_str(json_gen_str_t *jstr, char *name, char *object_str)
223223
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
224224
* added after that
225225
*/
226-
int json_gen_push_array(json_gen_str_t *jstr, char *name);
226+
int json_gen_push_array(json_gen_str_t *jstr, const char *name);
227227

228228
/** Pop a named JSON array
229229
*
@@ -257,7 +257,7 @@ int json_gen_pop_array(json_gen_str_t *jstr);
257257
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
258258
* added after that.
259259
*/
260-
int json_gen_push_array_str(json_gen_str_t *jstr, char *name, char *array_str);
260+
int json_gen_push_array_str(json_gen_str_t *jstr, const char *name, const char *array_str);
261261

262262
/** Add a boolean element to an object
263263
*
@@ -276,7 +276,7 @@ int json_gen_push_array_str(json_gen_str_t *jstr, char *name, char *array_str);
276276
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
277277
* added after that
278278
*/
279-
int json_gen_obj_set_bool(json_gen_str_t *jstr, char *name, bool val);
279+
int json_gen_obj_set_bool(json_gen_str_t *jstr, const char *name, bool val);
280280

281281
/** Add an integer element to an object
282282
*
@@ -295,7 +295,7 @@ int json_gen_obj_set_bool(json_gen_str_t *jstr, char *name, bool val);
295295
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
296296
* added after that
297297
*/
298-
int json_gen_obj_set_int(json_gen_str_t *jstr, char *name, int val);
298+
int json_gen_obj_set_int(json_gen_str_t *jstr, const char *name, int val);
299299

300300
/** Add a float element to an object
301301
*
@@ -314,7 +314,7 @@ int json_gen_obj_set_int(json_gen_str_t *jstr, char *name, int val);
314314
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
315315
* added after that
316316
*/
317-
int json_gen_obj_set_float(json_gen_str_t *jstr, char *name, float val);
317+
int json_gen_obj_set_float(json_gen_str_t *jstr, const char *name, float val);
318318

319319
/** Add a string element to an object
320320
*
@@ -333,7 +333,7 @@ int json_gen_obj_set_float(json_gen_str_t *jstr, char *name, float val);
333333
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
334334
* added after that
335335
*/
336-
int json_gen_obj_set_string(json_gen_str_t *jstr, char *name, char *val);
336+
int json_gen_obj_set_string(json_gen_str_t *jstr, const char *name, const char *val);
337337

338338
/** Add a NULL element to an object
339339
*
@@ -351,7 +351,7 @@ int json_gen_obj_set_string(json_gen_str_t *jstr, char *name, char *val);
351351
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
352352
* added after that
353353
*/
354-
int json_gen_obj_set_null(json_gen_str_t *jstr, char *name);
354+
int json_gen_obj_set_null(json_gen_str_t *jstr, const char *name);
355355

356356
/** Add a boolean element to an array
357357
*
@@ -415,7 +415,7 @@ int json_gen_arr_set_float(json_gen_str_t *jstr, float val);
415415
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
416416
* added after that
417417
*/
418-
int json_gen_arr_set_string(json_gen_str_t *jstr, char *val);
418+
int json_gen_arr_set_string(json_gen_str_t *jstr, const char *val);
419419

420420
/** Add a NULL element to an array
421421
*
@@ -452,7 +452,7 @@ int json_gen_arr_set_null(json_gen_str_t *jstr);
452452
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
453453
* added after that
454454
*/
455-
int json_gen_obj_start_long_string(json_gen_str_t *jstr, char *name, char *val);
455+
int json_gen_obj_start_long_string(json_gen_str_t *jstr, const char *name, const char *val);
456456

457457
/** Start a Long string in an array
458458
*
@@ -473,7 +473,7 @@ int json_gen_obj_start_long_string(json_gen_str_t *jstr, char *name, char *val);
473473
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
474474
* added after that
475475
*/
476-
int json_gen_arr_start_long_string(json_gen_str_t *jstr, char *val);
476+
int json_gen_arr_start_long_string(json_gen_str_t *jstr, const char *val);
477477

478478
/** Add to a JSON Long string
479479
*
@@ -489,7 +489,7 @@ int json_gen_arr_start_long_string(json_gen_str_t *jstr, char *val);
489489
* is passed to json_gen_str_start(). Else, buffer will be flushed out and new data
490490
* added after that
491491
*/
492-
int json_gen_add_to_long_string(json_gen_str_t *jstr, char *val);
492+
int json_gen_add_to_long_string(json_gen_str_t *jstr, const char *val);
493493

494494
/** End a JSON Long string
495495
*

tools/sdk/esp32/include/json_parser/upstream/include/json_parser.h

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#ifndef _JSON_PARSER_H_
1717
#define _JSON_PARSER_H_
1818

19+
#define JSMN_PARENT_LINKS
1920
#define JSMN_HEADER
2021
#include <jsmn/jsmn.h>
2122
#include <stdint.h>
@@ -34,29 +35,31 @@ typedef jsmntok_t json_tok_t;
3435

3536
typedef struct {
3637
json_parser_t parser;
37-
char *js;
38+
const char *js;
3839
json_tok_t *tokens;
3940
json_tok_t *cur;
4041
int num_tokens;
4142
} jparse_ctx_t;
4243

43-
int json_parse_start(jparse_ctx_t *jctx, char *js, int len);
44+
int json_parse_start(jparse_ctx_t *jctx, const char *js, int len);
4445
int json_parse_end(jparse_ctx_t *jctx);
46+
int json_parse_start_static(jparse_ctx_t *jctx, const char *js, int len, json_tok_t *buffer_tokens, int buffer_tokens_max_count);
47+
int json_parse_end_static(jparse_ctx_t *jctx);
4548

46-
int json_obj_get_array(jparse_ctx_t *jctx, char *name, int *num_elem);
49+
int json_obj_get_array(jparse_ctx_t *jctx, const char *name, int *num_elem);
4750
int json_obj_leave_array(jparse_ctx_t *jctx);
48-
int json_obj_get_object(jparse_ctx_t *jctx, char *name);
51+
int json_obj_get_object(jparse_ctx_t *jctx, const char *name);
4952
int json_obj_leave_object(jparse_ctx_t *jctx);
50-
int json_obj_get_bool(jparse_ctx_t *jctx, char *name, bool *val);
51-
int json_obj_get_int(jparse_ctx_t *jctx, char *name, int *val);
52-
int json_obj_get_int64(jparse_ctx_t *jctx, char *name, int64_t *val);
53-
int json_obj_get_float(jparse_ctx_t *jctx, char *name, float *val);
54-
int json_obj_get_string(jparse_ctx_t *jctx, char *name, char *val, int size);
55-
int json_obj_get_strlen(jparse_ctx_t *jctx, char *name, int *strlen);
56-
int json_obj_get_object_str(jparse_ctx_t *jctx, char *name, char *val, int size);
57-
int json_obj_get_object_strlen(jparse_ctx_t *jctx, char *name, int *strlen);
58-
int json_obj_get_array_str(jparse_ctx_t *jctx, char *name, char *val, int size);
59-
int json_obj_get_array_strlen(jparse_ctx_t *jctx, char *name, int *strlen);
53+
int json_obj_get_bool(jparse_ctx_t *jctx, const char *name, bool *val);
54+
int json_obj_get_int(jparse_ctx_t *jctx, const char *name, int *val);
55+
int json_obj_get_int64(jparse_ctx_t *jctx, const char *name, int64_t *val);
56+
int json_obj_get_float(jparse_ctx_t *jctx, const char *name, float *val);
57+
int json_obj_get_string(jparse_ctx_t *jctx, const char *name, char *val, int size);
58+
int json_obj_get_strlen(jparse_ctx_t *jctx, const char *name, int *strlen);
59+
int json_obj_get_object_str(jparse_ctx_t *jctx, const char *name, char *val, int size);
60+
int json_obj_get_object_strlen(jparse_ctx_t *jctx, const char *name, int *strlen);
61+
int json_obj_get_array_str(jparse_ctx_t *jctx, const char *name, char *val, int size);
62+
int json_obj_get_array_strlen(jparse_ctx_t *jctx, const char *name, int *strlen);
6063

6164
int json_arr_get_array(jparse_ctx_t *jctx, uint32_t index);
6265
int json_arr_leave_array(jparse_ctx_t *jctx);
@@ -74,3 +77,4 @@ int json_arr_get_strlen(jparse_ctx_t *jctx, uint32_t index, int *strlen);
7477
#endif
7578

7679
#endif /* _JSON_PARSER_H_ */
80+

tools/sdk/esp32/include/mbedtls/esp_crt_bundle/include/esp_crt_bundle.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
// Copyright 2017-2019 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157

168
#ifndef _ESP_CRT_BUNDLE_H_
179
#define _ESP_CRT_BUNDLE_H_
1810

11+
#include "esp_err.h"
1912
#include "mbedtls/ssl.h"
2013

2114
#ifdef __cplusplus
@@ -52,13 +45,19 @@ void esp_crt_bundle_detach(mbedtls_ssl_config *conf);
5245
/**
5346
* @brief Set the default certificate bundle used for verification
5447
*
55-
* Overrides the default certificate bundle. In most use cases the bundle should be
48+
* Overrides the default certificate bundle only in case of successful initialization. In most use cases the bundle should be
5649
* set through menuconfig. The bundle needs to be sorted by subject name since binary search is
5750
* used to find certificates.
5851
*
5952
* @param[in] x509_bundle A pointer to the certificate bundle.
53+
*
54+
* @param[in] bundle_size Size of the certificate bundle in bytes.
55+
*
56+
* @return
57+
* - ESP_OK if adding certificates was successful.
58+
* - Other if an error occured or an action must be taken by the calling process.
6059
*/
61-
void esp_crt_bundle_set(const uint8_t *x509_bundle);
60+
esp_err_t esp_crt_bundle_set(const uint8_t *x509_bundle, size_t bundle_size);
6261

6362

6463
#ifdef __cplusplus

tools/sdk/esp32/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libbt.a

328 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libconsole.a

56 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp-tls.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_hid.a

0 Bytes
Binary file not shown.
1.71 KB
Binary file not shown.

tools/sdk/esp32/lib/libesp_schedule.a

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

tools/sdk/esp32/lib/libjson_parser.a

4.47 KB
Binary file not shown.

tools/sdk/esp32/lib/libprotocomm.a

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

tools/sdk/esp32/qspi_qspi/include/sdkconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@
457457
#define CONFIG_MBEDTLS_SSL_KEEP_PEER_CERTIFICATE 1
458458
#define CONFIG_MBEDTLS_CERTIFICATE_BUNDLE 1
459459
#define CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL 1
460+
#define CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_MAX_CERTS 200
460461
#define CONFIG_MBEDTLS_HARDWARE_AES 1
461462
#define CONFIG_MBEDTLS_HARDWARE_MPI 1
462463
#define CONFIG_MBEDTLS_HARDWARE_SHA 1
@@ -740,5 +741,5 @@
740741
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
741742
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
742743
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
743-
#define CONFIG_ARDUINO_IDF_COMMIT "ae0e3e2e2a"
744+
#define CONFIG_ARDUINO_IDF_COMMIT "5e6cffbb14"
744745
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32/sdkconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ CONFIG_ESP_RMAKER_MQTT_HOST="a1p72mufdu6064-ats.iot.us-east-1.amazonaws.com"
145145
CONFIG_ESP_RMAKER_MAX_PARAM_DATA_SIZE=1024
146146
# CONFIG_ESP_RMAKER_DISABLE_USER_MAPPING_PROV is not set
147147
# CONFIG_ESP_RMAKER_USER_ID_CHECK is not set
148+
# CONFIG_RMAKER_NAME_PARAM_CB is not set
148149
# CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE is not set
149150
CONFIG_ESP_RMAKER_CONSOLE_UART_NUM_0=y
150151
# CONFIG_ESP_RMAKER_CONSOLE_UART_NUM_1 is not set
@@ -1330,6 +1331,7 @@ CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y
13301331
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN is not set
13311332
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_NONE is not set
13321333
# CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE is not set
1334+
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_MAX_CERTS=200
13331335
# end of Certificate Bundle
13341336

13351337
# CONFIG_MBEDTLS_ECP_RESTARTABLE is not set

tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api/esp_gap_bt_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ typedef union {
347347
struct read_rmt_name_param {
348348
esp_bt_status_t stat; /*!< read Remote Name status */
349349
uint8_t rmt_name[ESP_BT_GAP_MAX_BDNAME_LEN + 1]; /*!< Remote device name */
350+
esp_bd_addr_t bda; /*!< remote bluetooth device address*/
350351
} read_rmt_name; /*!< read Remote Name parameter struct */
351352

352353
/**

tools/sdk/esp32c3/include/esp_rainmaker/include/esp_rmaker_core.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,20 @@ esp_err_t esp_rmaker_system_service_enable(esp_rmaker_system_serv_config_t *conf
917917
*/
918918
bool esp_rmaker_local_ctrl_service_started(void);
919919

920+
/**
921+
* Enable Default RainMaker OTA Firmware Upgrade
922+
*
923+
* This enables the default recommended RainMaker OTA Firmware Upgrade, which is
924+
* "Using the Topics", which allows performing OTA from Dashboard.
925+
* This OTA can be triggered by Admin Users only.
926+
* On Public RainMaker deployment, for nodes using "Self Claiming", since there
927+
* is no associated admin user, the Primary user will automatically become the admin
928+
* and can perform OTA from dashboard.
929+
*
930+
* @return ESP_OK on success
931+
* @return error on failure
932+
*/
933+
esp_err_t esp_rmaker_ota_enable_default(void);
920934
#ifdef __cplusplus
921935
}
922936
#endif

0 commit comments

Comments
 (0)