From 44664187c06b5df321189cf80c9a3024c08d64cd Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Tue, 16 Apr 2024 11:06:22 +0800 Subject: [PATCH] Update esp-now version. --- examples/esp-now_bridge_light/main/app_espnow.cpp | 2 +- examples/esp-now_bridge_light/main/app_main.cpp | 1 + examples/esp-now_bridge_light/main/idf_component.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/esp-now_bridge_light/main/app_espnow.cpp b/examples/esp-now_bridge_light/main/app_espnow.cpp index 0bcec20c1..b0c0b85d3 100644 --- a/examples/esp-now_bridge_light/main/app_espnow.cpp +++ b/examples/esp-now_bridge_light/main/app_espnow.cpp @@ -166,7 +166,7 @@ void app_espnow_init() esp_event_handler_register(ESP_EVENT_ESPNOW, ESP_EVENT_ANY_ID, espnow_event_handler, NULL); - ESP_ERROR_CHECK(espnow_ctrl_responder_bind(30 * 1000, -55, NULL)); + ESP_ERROR_CHECK(espnow_ctrl_responder_bind(30 * 60 * 1000, -55, NULL)); // Without registering this callback, it crashes when calling the callback espnow_ctrl_responder_raw_data_cb espnow_ctrl_responder_data(espnow_ctrl_responder_data_cb); espnow_ctrl_recv(espnow_ctrl_responder_raw_data_cb); diff --git a/examples/esp-now_bridge_light/main/app_main.cpp b/examples/esp-now_bridge_light/main/app_main.cpp index 1703ef29e..08f8db8f3 100644 --- a/examples/esp-now_bridge_light/main/app_main.cpp +++ b/examples/esp-now_bridge_light/main/app_main.cpp @@ -190,6 +190,7 @@ extern "C" void app_main() #if CONFIG_ENABLE_CHIP_SHELL esp_matter::console::diagnostics_register_commands(); + esp_matter::console::wifi_register_commands(); esp_matter::console::init(); #endif } diff --git a/examples/esp-now_bridge_light/main/idf_component.yml b/examples/esp-now_bridge_light/main/idf_component.yml index 3f4859eb4..a2a1ff901 100644 --- a/examples/esp-now_bridge_light/main/idf_component.yml +++ b/examples/esp-now_bridge_light/main/idf_component.yml @@ -2,7 +2,7 @@ dependencies: # esp-now 2.5.0 will use 'dcm' member in esp_now_rate_config_t, and that member is introduced after IDF v5.1.2. # TODO: update esp-now component to the latest version when updating ESP-IDF - espressif/esp-now: "2.4.0" + espressif/esp-now: "2.5.1" ## Required IDF version idf: version: ">=4.1.0"