Skip to content

Commit 7350682

Browse files
committed
Adjust logic for esp-idf 5.1
1 parent b2ed538 commit 7350682

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

examples/indicator_matter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ add_link_options(-Wl,-gc-sections)
2828

2929
project(indicator_matter)
3030

31-
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++14;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
31+
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
3232
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
3333
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)

examples/indicator_matter/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ idf_component_register(
2020
PRIV_INCLUDE_DIRS "."
2121
EMBED_TXTFILES timeapi_cert.pem)
2222

23-
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
23+
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 17)
2424
target_compile_options(${COMPONENT_LIB} PRIVATE "-DCHIP_HAVE_CONFIG_H")

examples/indicator_matter/main/model/indicator_matter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ static void app_event_cb(const ChipDeviceEvent *event, intptr_t arg)
9696
st.rssi = -50;
9797
st.is_connected = true;
9898
esp_event_post_to(view_event_handle, VIEW_EVENT_BASE, VIEW_EVENT_WIFI_ST, &st, sizeof(struct view_data_wifi_st ), portMAX_DELAY);
99+
100+
__g_matter_connected_flag_set(true);
101+
uint8_t screen = SCREEN_DASHBOARD;
102+
ESP_ERROR_CHECK(esp_event_post_to(view_event_handle, VIEW_EVENT_BASE, VIEW_EVENT_SCREEN_START, &screen, sizeof(screen), portMAX_DELAY));
99103
}
100104
break;
101105
case chip::DeviceLayer::DeviceEventType::kCommissioningComplete: {

examples/indicator_matter/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file was generated using idf.py save-defconfig. It can be edited manually.
22
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
33
#
4+
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
45
CONFIG_SPI_FLASH_32BIT_ADDRESS=y
56
CONFIG_IDF_TARGET="esp32s3"
67
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y

0 commit comments

Comments
 (0)