Skip to content

Commit d933931

Browse files
Converted return type for Unsupported Attribtue according to spec
1 parent 5345c52 commit d933931

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/clusters/scenes-server/scenes-server.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ CHIP_ERROR AddResponseOnError(CommandHandlerInterface::HandlerContext & ctx, Res
7171
{
7272
resp.status = to_underlying(Protocols::InteractionModel::Status::ResourceExhausted);
7373
}
74+
else if (CHIP_IM_GLOBAL_STATUS(UnsupportedAttribute) == err)
75+
{
76+
// TODO: Confirm if we need to add UnsupportedAttribute status as a return for Scene Commands
77+
resp.status = to_underlying(Protocols::InteractionModel::Status::InvalidCommand);
78+
}
7479
else
7580
{
7681
resp.status = to_underlying(StatusIB(err).mStatus);

0 commit comments

Comments
 (0)