|
21 | 21 | #include "DataModelLogger.h"
|
22 | 22 | #include "ModelCommand.h"
|
23 | 23 | #include <app/tests/suites/commands/interaction_model/InteractionModel.h>
|
| 24 | +#include <lib/core/ClusterEnums.h> |
24 | 25 |
|
25 | 26 | class ClusterCommand : public InteractionModelCommands, public ModelCommand, public chip::app::CommandSender::Callback
|
26 | 27 | {
|
@@ -70,6 +71,7 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
|
70 | 71 | ReturnErrorOnFailure(InteractionModelCommands::SendCommand(device, endpointId, clusterId, commandId, value));
|
71 | 72 | mScopedNodeId = chip::ScopedNodeId(value.checkInNodeID, device->GetSecureSession().Value()->GetFabricIndex());
|
72 | 73 | mMonitoredSubject = value.monitoredSubject;
|
| 74 | + mClientType = value.clientType; |
73 | 75 | memcpy(mICDSymmetricKey, value.key.data(), value.key.size());
|
74 | 76 | return CHIP_NO_ERROR;
|
75 | 77 | }
|
@@ -148,6 +150,7 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
|
148 | 150 | clientInfo.peer_node = mScopedNodeId;
|
149 | 151 | clientInfo.monitored_subject = mMonitoredSubject;
|
150 | 152 | clientInfo.start_icd_counter = value.ICDCounter;
|
| 153 | + clientInfo.client_type = mClientType; |
151 | 154 |
|
152 | 155 | StoreICDEntryWithKey(clientInfo, chip::ByteSpan(mICDSymmetricKey));
|
153 | 156 | }
|
@@ -258,8 +261,10 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
|
258 | 261 | chip::ClusterId mClusterId;
|
259 | 262 | chip::CommandId mCommandId;
|
260 | 263 | chip::ScopedNodeId mScopedNodeId;
|
261 |
| - uint64_t mMonitoredSubject = static_cast<uint64_t>(0); |
| 264 | + uint64_t mMonitoredSubject = static_cast<uint64_t>(0); |
| 265 | + chip::app::Clusters::IcdManagement::ClientTypeEnum mClientType = chip::app::Clusters::IcdManagement::ClientTypeEnum::kPermanent; |
262 | 266 | uint8_t mICDSymmetricKey[chip::Crypto::kAES_CCM128_Key_Length];
|
| 267 | + |
263 | 268 | CHIP_ERROR mError = CHIP_NO_ERROR;
|
264 | 269 | CustomArgument mPayload;
|
265 | 270 | };
|
0 commit comments