From 9858352fe295fe911db2edad83a1cf1cf16205b7 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Mon, 12 Dec 2022 09:22:00 -0500 Subject: [PATCH] replace response sender with commandhandler --- .../client-monitoring-server/client-monitoring-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/client-monitoring-server/client-monitoring-server.cpp b/src/app/clusters/client-monitoring-server/client-monitoring-server.cpp index fcfd1dd64e6d11..a333ba45ca00a8 100644 --- a/src/app/clusters/client-monitoring-server/client-monitoring-server.cpp +++ b/src/app/clusters/client-monitoring-server/client-monitoring-server.cpp @@ -76,7 +76,7 @@ bool emberAfClientMonitoringClusterRegisterClientMonitoringCallback( CommandHandler * commandObj, const ConcreteCommandPath & commandPath, const Commands::RegisterClientMonitoring::DecodableType & commandData) { - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); + commandObj->AddStatus(commandPath, Protocols::InteractionModel::Status::UnsupportedCommand); return false; } /** @@ -85,7 +85,7 @@ bool emberAfClientMonitoringClusterRegisterClientMonitoringCallback( bool emberAfClientMonitoringClusterStayAwakeRequestCallback(CommandHandler * commandObj, const ConcreteCommandPath & commandPath, const Commands::StayAwakeRequest::DecodableType & commandData) { - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND); + commandObj->AddStatus(commandPath, Protocols::InteractionModel::Status::UnsupportedCommand); return false; }