|
11 | 11 | #include <nvs_flash.h>
|
12 | 12 |
|
13 | 13 | #include <esp_matter.h>
|
14 |
| -#include <esp_matter_cluster.h> |
15 | 14 | #include <esp_matter_console.h>
|
16 | 15 | #include <esp_matter_ota.h>
|
17 | 16 |
|
|
23 | 22 | #endif
|
24 | 23 |
|
25 | 24 | #include <app/server/CommissioningWindowManager.h>
|
26 |
| -#include <app/clusters/diagnostic-logs-server/diagnostic-logs-server.h> |
27 |
| -#include <diagnostic-logs-provider-delegate-impl.h> |
28 | 25 | #include <app/server/Server.h>
|
29 | 26 |
|
30 | 27 | static const char *TAG = "app_main";
|
@@ -165,11 +162,6 @@ extern "C" void app_main()
|
165 | 162 | node_t *node = node::create(&node_config, app_attribute_update_cb, app_identification_cb);
|
166 | 163 | ABORT_APP_ON_FAILURE(node != nullptr, ESP_LOGE(TAG, "Failed to create Matter node"));
|
167 | 164 |
|
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 |
| - |
173 | 165 | extended_color_light::config_t light_config;
|
174 | 166 | light_config.on_off.on_off = DEFAULT_POWER;
|
175 | 167 | light_config.on_off.lighting.start_up_on_off = nullptr;
|
@@ -230,10 +222,3 @@ extern "C" void app_main()
|
230 | 222 | esp_matter::console::init();
|
231 | 223 | #endif
|
232 | 224 | }
|
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 |
| -} |
0 commit comments