@@ -369,62 +369,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP
369
369
370
370
} // namespace EthernetNetworkDiagnostics
371
371
372
- namespace GeneralCommissioning {
373
-
374
- void DispatchServerCommand (CommandHandler * apCommandObj, const ConcreteCommandPath & aCommandPath, TLV::TLVReader & aDataTlv)
375
- {
376
- CHIP_ERROR TLVError = CHIP_NO_ERROR;
377
- bool wasHandled = false ;
378
- {
379
- switch (aCommandPath.mCommandId )
380
- {
381
- case Commands::ArmFailSafe::Id: {
382
- Commands::ArmFailSafe::DecodableType commandData;
383
- TLVError = DataModel::Decode (aDataTlv, commandData);
384
- if (TLVError == CHIP_NO_ERROR)
385
- {
386
- wasHandled = emberAfGeneralCommissioningClusterArmFailSafeCallback (apCommandObj, aCommandPath, commandData);
387
- }
388
- break ;
389
- }
390
- case Commands::SetRegulatoryConfig::Id: {
391
- Commands::SetRegulatoryConfig::DecodableType commandData;
392
- TLVError = DataModel::Decode (aDataTlv, commandData);
393
- if (TLVError == CHIP_NO_ERROR)
394
- {
395
- wasHandled = emberAfGeneralCommissioningClusterSetRegulatoryConfigCallback (apCommandObj, aCommandPath, commandData);
396
- }
397
- break ;
398
- }
399
- case Commands::CommissioningComplete::Id: {
400
- Commands::CommissioningComplete::DecodableType commandData;
401
- TLVError = DataModel::Decode (aDataTlv, commandData);
402
- if (TLVError == CHIP_NO_ERROR)
403
- {
404
- wasHandled =
405
- emberAfGeneralCommissioningClusterCommissioningCompleteCallback (apCommandObj, aCommandPath, commandData);
406
- }
407
- break ;
408
- }
409
- default : {
410
- // Unrecognized command ID, error status will apply.
411
- apCommandObj->AddStatus (aCommandPath, Protocols::InteractionModel::Status::UnsupportedCommand);
412
- ChipLogError (Zcl, " Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI,
413
- ChipLogValueMEI (aCommandPath.mCommandId ), ChipLogValueMEI (aCommandPath.mClusterId ));
414
- return ;
415
- }
416
- }
417
- }
418
-
419
- if (CHIP_NO_ERROR != TLVError || !wasHandled)
420
- {
421
- apCommandObj->AddStatus (aCommandPath, Protocols::InteractionModel::Status::InvalidCommand);
422
- ChipLogProgress (Zcl, " Failed to dispatch command, TLVError=%" CHIP_ERROR_FORMAT, TLVError.Format ());
423
- }
424
- }
425
-
426
- } // namespace GeneralCommissioning
427
-
428
372
namespace GeneralDiagnostics {
429
373
430
374
void DispatchServerCommand (CommandHandler * apCommandObj, const ConcreteCommandPath & aCommandPath, TLV::TLVReader & aDataTlv)
@@ -1115,9 +1059,6 @@ void DispatchSingleClusterCommand(const ConcreteCommandPath & aCommandPath, TLV:
1115
1059
case Clusters::EthernetNetworkDiagnostics::Id:
1116
1060
Clusters::EthernetNetworkDiagnostics::DispatchServerCommand (apCommandObj, aCommandPath, aReader);
1117
1061
break ;
1118
- case Clusters::GeneralCommissioning::Id:
1119
- Clusters::GeneralCommissioning::DispatchServerCommand (apCommandObj, aCommandPath, aReader);
1120
- break ;
1121
1062
case Clusters::GeneralDiagnostics::Id:
1122
1063
Clusters::GeneralDiagnostics::DispatchServerCommand (apCommandObj, aCommandPath, aReader);
1123
1064
break ;
0 commit comments