Skip to content

Commit 8c101ca

Browse files
committed
Merge branch 'remove-diag-logs-from-eg' into 'main'
Revert "Support diagnostic logs cluster in light example" See merge request app-frameworks/esp-matter!710
2 parents 43918ed + 4a675b5 commit 8c101ca

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed

examples/light/main/CMakeLists.txt

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
idf_component_register(SRCS
2-
"app_driver.cpp"
3-
"app_main.cpp"
4-
"${MATTER_SDK_PATH}/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp"
5-
PRIV_INCLUDE_DIRS
6-
"."
7-
"${ESP_MATTER_PATH}/examples/common/utils"
8-
"${MATTER_SDK_PATH}/examples/temperature-measurement-app/esp32/main/include"
9-
EMBED_FILES
10-
"${MATTER_SDK_PATH}/examples/temperature-measurement-app/esp32/main/diagnostic_logs/end_user_support.log"
11-
"${MATTER_SDK_PATH}/examples/temperature-measurement-app/esp32/main/diagnostic_logs/network_diag.log")
1+
idf_component_register(SRC_DIRS "."
2+
PRIV_INCLUDE_DIRS "." "${ESP_MATTER_PATH}/examples/common/utils")
123

134
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 17)
145
target_compile_options(${COMPONENT_LIB} PRIVATE "-DCHIP_HAVE_CONFIG_H")

examples/light/main/app_main.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <nvs_flash.h>
1212

1313
#include <esp_matter.h>
14-
#include <esp_matter_cluster.h>
1514
#include <esp_matter_console.h>
1615
#include <esp_matter_ota.h>
1716

@@ -23,8 +22,6 @@
2322
#endif
2423

2524
#include <app/server/CommissioningWindowManager.h>
26-
#include <app/clusters/diagnostic-logs-server/diagnostic-logs-server.h>
27-
#include <diagnostic-logs-provider-delegate-impl.h>
2825
#include <app/server/Server.h>
2926

3027
static const char *TAG = "app_main";
@@ -165,11 +162,6 @@ extern "C" void app_main()
165162
node_t *node = node::create(&node_config, app_attribute_update_cb, app_identification_cb);
166163
ABORT_APP_ON_FAILURE(node != nullptr, ESP_LOGE(TAG, "Failed to create Matter node"));
167164

168-
// add diagnostic logs cluster on root endpoint
169-
cluster::diagnostic_logs::config_t diag_logs_config;
170-
endpoint_t *root_ep = endpoint::get(node, 0); // get the root node ep
171-
cluster::diagnostic_logs::create(root_ep, &diag_logs_config, CLUSTER_FLAG_SERVER);
172-
173165
extended_color_light::config_t light_config;
174166
light_config.on_off.on_off = DEFAULT_POWER;
175167
light_config.on_off.lighting.start_up_on_off = nullptr;
@@ -230,10 +222,3 @@ extern "C" void app_main()
230222
esp_matter::console::init();
231223
#endif
232224
}
233-
234-
using namespace chip::app::Clusters::DiagnosticLogs;
235-
void emberAfDiagnosticLogsClusterInitCallback(chip::EndpointId endpoint)
236-
{
237-
auto & logProvider = LogProvider::GetInstance();
238-
DiagnosticLogsServer::Instance().SetDiagnosticLogsProviderDelegate(endpoint, &logProvider);
239-
}

examples/light/partitions.csv

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ phy_init, data, phy, , 0x1000,
88
ota_0, app, ota_0, 0x20000, 0x1E0000,
99
ota_1, app, ota_1, 0x200000, 0x1E0000,
1010
fctry, data, nvs, 0x3E0000, 0x6000
11-
coredump, data, coredump,, 64K

examples/light/sdkconfig.defaults

-7
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,3 @@ CONFIG_BSP_BUTTON_1_GPIO=0
5353
CONFIG_BSP_BUTTON_1_LEVEL=0
5454
# LEDs
5555
CONFIG_BSP_LEDS_NUM=0
56-
57-
# configurations required for diagnostic logs cluster
58-
# Enable the diagnostic logs transfer over BDX protocol
59-
CONFIG_CHIP_ENABLE_BDX_LOG_TRANSFER=y
60-
61-
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
62-
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y

0 commit comments

Comments
 (0)