From 92034e9e840048dbfad13c2f5ef5c1132f6018f6 Mon Sep 17 00:00:00 2001 From: Rohit Jadhav Date: Mon, 21 Nov 2022 16:38:49 +0530 Subject: [PATCH] Added descriptor cluster for sensor device types. Closes https://github.com/espressif/esp-matter/issues/94 --- components/esp_matter/esp_matter_endpoint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_matter/esp_matter_endpoint.cpp b/components/esp_matter/esp_matter_endpoint.cpp index 6875118fa..63e5ad93a 100644 --- a/components/esp_matter/esp_matter_endpoint.cpp +++ b/components/esp_matter/esp_matter_endpoint.cpp @@ -662,6 +662,7 @@ endpoint_t *add(endpoint_t *endpoint, config_t *config) } add_device_type(endpoint, get_device_type_id(), get_device_type_version()); + descriptor::create(endpoint, CLUSTER_FLAG_SERVER); identify::create(endpoint, &(config->identify), CLUSTER_FLAG_SERVER); temperature_measurement::create(endpoint, &(config->temperature_measurement), CLUSTER_FLAG_SERVER); @@ -694,6 +695,7 @@ endpoint_t *add(endpoint_t *endpoint, config_t *config) } add_device_type(endpoint, get_device_type_id(), get_device_type_version()); + descriptor::create(endpoint, CLUSTER_FLAG_SERVER); identify::create(endpoint, &(config->identify), CLUSTER_FLAG_SERVER); occupancy_sensing::create(endpoint, &(config->occupancy_sensing), CLUSTER_FLAG_SERVER); @@ -726,6 +728,7 @@ endpoint_t *add(endpoint_t *endpoint, config_t *config) } add_device_type(endpoint, get_device_type_id(), get_device_type_version()); + descriptor::create(endpoint, CLUSTER_FLAG_SERVER); identify::create(endpoint, &(config->identify), CLUSTER_FLAG_SERVER); boolean_state::create(endpoint, &(config->boolean_state), CLUSTER_FLAG_SERVER);