From 0d85755562d2c55a95ec75e2031fd6ccb24538f7 Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 28 Oct 2025 12:36:12 +0530 Subject: [PATCH] components/esp_matter: Add missing pending_dataset_timestamp mandatory attribute for thread border router management cluster --- components/esp_matter/data_model/esp_matter_cluster.cpp | 5 +++-- components/esp_matter/data_model/esp_matter_feature.cpp | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/esp_matter/data_model/esp_matter_cluster.cpp b/components/esp_matter/data_model/esp_matter_cluster.cpp index c97ea865a..1b1ddc5d9 100644 --- a/components/esp_matter/data_model/esp_matter_cluster.cpp +++ b/components/esp_matter/data_model/esp_matter_cluster.cpp @@ -3387,8 +3387,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags) attribute::create_border_agent_id(cluster, nullptr, 0); attribute::create_thread_version(cluster, 0); attribute::create_interface_enabled(cluster, false); - nullable timestamp; - attribute::create_active_dataset_timestamp(cluster, timestamp); + nullable active_dataset_timestamp, pending_dataset_timestamp; + attribute::create_active_dataset_timestamp(cluster, active_dataset_timestamp); + attribute::create_pending_dataset_timestamp(cluster, pending_dataset_timestamp); /** Attributes not managed internally **/ global::attribute::create_cluster_revision(cluster, cluster_revision); diff --git a/components/esp_matter/data_model/esp_matter_feature.cpp b/components/esp_matter/data_model/esp_matter_feature.cpp index d5a8ccd6b..ac11fe911 100644 --- a/components/esp_matter/data_model/esp_matter_feature.cpp +++ b/components/esp_matter/data_model/esp_matter_feature.cpp @@ -3171,9 +3171,6 @@ esp_err_t add(cluster_t *cluster) { VerifyOrReturnError(cluster, ESP_ERR_INVALID_ARG, ESP_LOGE(TAG, "Cluster cannot be NULL")); update_feature_map(cluster, get_id()); - /* attribute */ - nullable timestamp; - attribute::create_pending_dataset_timestamp(cluster, timestamp); /* command */ command::create_set_pending_dataset_request(cluster);