@@ -202,7 +202,7 @@ CHIP_ERROR IcdManagementAttributeAccess::ReadRegisteredClients(EndpointId endpoi
202
202
203
203
Structs::MonitoringRegistrationStruct::Type s{ .checkInNodeID = e.checkInNodeID ,
204
204
.monitoredSubject = e.monitoredSubject ,
205
- .clientType = ClientTypeEnum ( e.clientType ) ,
205
+ .clientType = e.clientType ,
206
206
.fabricIndex = e.fabricIndex };
207
207
ReturnErrorOnFailure (subEncoder.Encode (s));
208
208
}
@@ -250,13 +250,13 @@ CHIP_ERROR CheckAdmin(CommandHandler * commandObj, const ConcreteCommandPath & c
250
250
Status ICDManagementServer::RegisterClient (CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
251
251
const Commands::RegisterClient::DecodableType & commandData, uint32_t & icdCounter)
252
252
{
253
- FabricIndex fabricIndex = commandObj->GetAccessingFabricIndex ();
254
- NodeId nodeId = commandData.checkInNodeID ;
255
- uint64_t monitoredSubject = commandData.monitoredSubject ;
256
- Optional< ClientTypeEnum> clientType = commandData.clientType ;
257
- ByteSpan key = commandData.key ;
258
- Optional<ByteSpan> verificationKey = commandData.verificationKey ;
259
- bool isClientAdmin = false ;
253
+ FabricIndex fabricIndex = commandObj->GetAccessingFabricIndex ();
254
+ NodeId nodeId = commandData.checkInNodeID ;
255
+ uint64_t monitoredSubject = commandData.monitoredSubject ;
256
+ ClientTypeEnum clientType = commandData.clientType ;
257
+ ByteSpan key = commandData.key ;
258
+ Optional<ByteSpan> verificationKey = commandData.verificationKey ;
259
+ bool isClientAdmin = false ;
260
260
261
261
// Check if client is admin
262
262
VerifyOrReturnError (CHIP_NO_ERROR == CheckAdmin (commandObj, commandPath, isClientAdmin), InteractionModel::Status::Failure);
@@ -293,7 +293,7 @@ Status ICDManagementServer::RegisterClient(CommandHandler * commandObj, const Co
293
293
// Save
294
294
entry.checkInNodeID = nodeId;
295
295
entry.monitoredSubject = monitoredSubject;
296
- entry.clientType = clientType. ValueOr (ClientTypeEnum:: kPermanent ) ;
296
+ entry.clientType = clientType;
297
297
298
298
if (entry.keyHandleValid )
299
299
{
0 commit comments