@@ -130,6 +130,7 @@ class ContentLauncherAttrAccess : public app::AttributeAccessInterface
130
130
CHIP_ERROR ReadAcceptHeaderAttribute (app::AttributeValueEncoder & aEncoder, Delegate * delegate);
131
131
CHIP_ERROR ReadSupportedStreamingProtocolsAttribute (app::AttributeValueEncoder & aEncoder, Delegate * delegate);
132
132
CHIP_ERROR ReadFeatureFlagAttribute (EndpointId endpoint, app::AttributeValueEncoder & aEncoder, Delegate * delegate);
133
+ CHIP_ERROR ReadRevisionAttribute (EndpointId endpoint, app::AttributeValueEncoder & aEncoder, Delegate * delegate);
133
134
};
134
135
135
136
ContentLauncherAttrAccess gContentLauncherAttrAccess ;
@@ -165,6 +166,14 @@ CHIP_ERROR ContentLauncherAttrAccess::Read(const app::ConcreteReadAttributePath
165
166
166
167
return ReadFeatureFlagAttribute (endpoint, aEncoder, delegate);
167
168
}
169
+ case app::Clusters::ContentLauncher::Attributes::ClusterRevision::Id: {
170
+ if (isDelegateNull (delegate, endpoint))
171
+ {
172
+ return CHIP_NO_ERROR;
173
+ }
174
+
175
+ return ReadRevisionAttribute (endpoint, aEncoder, delegate);
176
+ }
168
177
default : {
169
178
break ;
170
179
}
@@ -192,6 +201,13 @@ CHIP_ERROR ContentLauncherAttrAccess::ReadSupportedStreamingProtocolsAttribute(a
192
201
return aEncoder.Encode (streamingProtocols);
193
202
}
194
203
204
+ CHIP_ERROR ContentLauncherAttrAccess::ReadRevisionAttribute (EndpointId endpoint, app::AttributeValueEncoder & aEncoder,
205
+ Delegate * delegate)
206
+ {
207
+ uint16_t clusterRevision = delegate->GetClusterRevision (endpoint);
208
+ return aEncoder.Encode (clusterRevision);
209
+ }
210
+
195
211
} // anonymous namespace
196
212
197
213
// -----------------------------------------------------------------------------
0 commit comments