Skip to content

Commit

Permalink
Add functions to set TagList attribute in descriptor cluster (#28753)
Browse files Browse the repository at this point in the history
* Add TagList support feature in descriptor cluster

* Restyled by clang-format

* Add descriptor in all-cluster-app

* modify descriptor cluster's revision

* Restyled by clang-format

* read featureMap before read tag attribute

* Restyled by clang-format

* modify the namespace in descriptor cluster

* Restyled by clang-format

* Optimize the descriptor cluster with review suggestion

* Optimize GetTagListFromEndpointAtIndex api and add ReadFeatureMap api

* Add read taglist and featureMap in TestDescriptorCluster.yaml

* zap regen

* Restyled by whitespace

* Restyled by clang-format

* Restyled by prettier-yaml

* Add advice of review

* update TestScript for descriptor cluster

* Restyled by clang-format

* update read tagList step in Test_TC_DESC_2_1.yaml

* fixes spelling

* resume featureMap setting in zap, set while set taglist

* fix read tagList step in Test_TC_DESC_2_1.yaml

* fix CI error

* fix CI error

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
mideayanghui and restyled-commits authored Aug 25, 2023
1 parent 2e59655 commit 6f71e28
Show file tree
Hide file tree
Showing 11 changed files with 418 additions and 158 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ server cluster Descriptor = 29 {
readonly attribute CLUSTER_ID serverList[] = 1;
readonly attribute CLUSTER_ID clientList[] = 2;
readonly attribute ENDPOINT_NO partsList[] = 3;
readonly attribute SemanticTagStruct tagList[] = 4;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -6130,12 +6131,13 @@ endpoint 0 {
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute tagList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
callback attribute clusterRevision default = 1;
callback attribute clusterRevision default = 2;
}

server cluster Binding {
Expand Down Expand Up @@ -6634,12 +6636,13 @@ endpoint 1 {
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute tagList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
callback attribute clusterRevision default = 1;
callback attribute clusterRevision default = 2;
}

server cluster Binding {
Expand Down Expand Up @@ -7646,12 +7649,13 @@ endpoint 2 {
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute tagList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
callback attribute clusterRevision default = 1;
callback attribute clusterRevision default = 2;
}

server cluster PowerSource {
Expand Down Expand Up @@ -7688,7 +7692,7 @@ endpoint 65534 {
callback attribute clientList;
callback attribute partsList;
ram attribute featureMap default = 0;
callback attribute clusterRevision default = 1;
callback attribute clusterRevision default = 2;
}

server cluster NetworkCommissioning {
Expand Down
Loading

0 comments on commit 6f71e28

Please sign in to comment.