Skip to content

Commit 4f338fa

Browse files
address comments
1 parent 5e86991 commit 4f338fa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/chip-tool/commands/clusters/ClusterCommand.h

+11-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
6161
{
6262
ReturnErrorOnFailure(InteractionModelCommands::SendCommand(device, endpointId, clusterId, commandId, value));
6363
mPeerNodeId = chip::ScopedNodeId(device->GetDeviceId(), device->GetSecureSession().Value()->GetFabricIndex());
64-
mCheckInNodeId = chip::ScopedNodeId(value.checkInNodeID, device->GetSecureSession().Value()->GetFabricIndex());
6564
return CHIP_NO_ERROR;
6665
}
6766

@@ -264,10 +263,21 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
264263
private:
265264
chip::ClusterId mClusterId;
266265
chip::CommandId mCommandId;
266+
// The scoped node ID to which RegisterClient and unregisterClient command will be sent
267267
chip::ScopedNodeId mPeerNodeId;
268+
// The scoped node ID to which a Check-In message will be sent
268269
chip::ScopedNodeId mCheckInNodeId;
270+
271+
// Used to determine if a particular client has an active subscription for the given entry.
272+
// The MonitoredSubject, when it is a NodeID, MAY be the same as the CheckInNodeID.
273+
// The MonitoredSubject gives the registering client the flexibility of having a different
274+
// CheckInNodeID from the MonitoredSubject.
269275
uint64_t mMonitoredSubject = static_cast<uint64_t>(0);
276+
277+
// Client type of the client registering
270278
chip::app::Clusters::IcdManagement::ClientTypeEnum mClientType = chip::app::Clusters::IcdManagement::ClientTypeEnum::kPermanent;
279+
280+
// Shared secret between the client and the ICD to encrypt the Check-In message.
271281
uint8_t mICDSymmetricKey[chip::Crypto::kAES_CCM128_Key_Length];
272282

273283
CHIP_ERROR mError = CHIP_NO_ERROR;

0 commit comments

Comments
 (0)