File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
matter/src/data_model/system_model Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ impl DescriptorCluster {
67
67
Access :: RV ,
68
68
Quality :: NONE ,
69
69
) ?,
70
+ Attribute :: new (
71
+ Attributes :: ClientList as u16 ,
72
+ AttrValue :: Custom ,
73
+ Access :: RV ,
74
+ Quality :: NONE ,
75
+ ) ?,
70
76
] ;
71
77
c. base . add_attributes ( & attrs[ ..] ) ?;
72
78
Ok ( c)
@@ -124,6 +130,12 @@ impl DescriptorCluster {
124
130
}
125
131
let _ = tw. end_container ( ) ;
126
132
}
133
+
134
+ fn encode_client_list ( & self , tag : TagType , tw : & mut TLVWriter ) {
135
+ // No Clients supported
136
+ let _ = tw. start_array ( tag) ;
137
+ let _ = tw. end_container ( ) ;
138
+ }
127
139
}
128
140
129
141
impl ClusterType for DescriptorCluster {
@@ -145,6 +157,9 @@ impl ClusterType for DescriptorCluster {
145
157
Some ( Attributes :: PartsList ) => encoder. encode ( EncodeValue :: Closure ( & |tag, tw| {
146
158
self . encode_parts_list ( tag, tw)
147
159
} ) ) ,
160
+ Some ( Attributes :: ClientList ) => encoder. encode ( EncodeValue :: Closure ( & |tag, tw| {
161
+ self . encode_client_list ( tag, tw)
162
+ } ) ) ,
148
163
_ => {
149
164
error ! ( "Attribute not supported: this shouldn't happen" ) ;
150
165
}
You can’t perform that action at this time.
0 commit comments