Skip to content

Commit 3ee6bbc

Browse files
committed
feat(m5stack): adaption for idf v5.4.2
1 parent cd295b9 commit 3ee6bbc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ build_examples:
135135

136136
build_examples_m5stack:
137137
stage: build
138-
image: espressif/idf:v5.4.1
138+
image: espressif/idf:v5.4.2
139139
script:
140140
- *submodule_update
141141
- *build_m5stack_thread_border_router

examples/common/thread_border_router_m5stack/src/br_m5stack_epskc_page.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void epskc_delete_btn_handler(lv_event_t *e)
4545
page = atomic_exchange(&s_epskc_display_page, page);
4646
if (page) {
4747
esp_openthread_lock_acquire(portMAX_DELAY);
48-
otBorderAgentClearEphemeralKey(esp_openthread_get_instance());
48+
otBorderAgentEphemeralKeyStop(esp_openthread_get_instance());
4949
esp_openthread_lock_release();
5050
delete_epskc_display_page(page);
5151
}
@@ -71,9 +71,9 @@ static void create_ephemeral_key_page(char *key_txt)
7171
char txt[13] = "";
7272

7373
esp_openthread_lock_acquire(portMAX_DELAY);
74-
err = otBorderAgentSetEphemeralKey(esp_openthread_get_instance(), key_txt,
75-
CONFIG_OPENTHREAD_EPHEMERALKEY_LIFE_TIME * 1000,
76-
CONFIG_OPENTHREAD_EPHEMERALKEY_PORT);
74+
err = otBorderAgentEphemeralKeyStart(esp_openthread_get_instance(), key_txt,
75+
CONFIG_OPENTHREAD_EPHEMERALKEY_LIFE_TIME * 1000,
76+
CONFIG_OPENTHREAD_EPHEMERALKEY_PORT);
7777
esp_openthread_lock_release();
7878

7979
BR_M5STACK_GOTO_ON_FALSE(err == OT_ERROR_NONE, exit, "Fail to apply ephemeral key");

examples/m5stack_thread_border_router/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This example requires the M5Stack CoreS3 along with the ESP32-H2 Thread/Zigbee G
2929

3030
### IDF Version Required
3131

32-
This example requires [IDF v5.4.1](https://github.com/espressif/esp-idf/tree/v5.4.1). It may not work with later IDF versions.
32+
This example requires [IDF v5.4.2](https://github.com/espressif/esp-idf/tree/v5.4.2). It may not be compatible with older or newer versions of IDF.
3333

3434
### Configure the Project
3535

0 commit comments

Comments
 (0)