Skip to content

Commit

Permalink
align the utilty cluster to Matter 1.3 Version
Browse files Browse the repository at this point in the history
  • Loading branch information
doublemis1 committed Feb 7, 2024
1 parent 45a4775 commit c691fce
Show file tree
Hide file tree
Showing 14 changed files with 2,750 additions and 493 deletions.
1 change: 0 additions & 1 deletion samples/matter/lock/src/lit/zap-generated/CHIPClusters.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace chip
{
namespace Controller
{

class DLL_EXPORT OtaSoftwareUpdateProviderCluster : public ClusterBase {
public:
OtaSoftwareUpdateProviderCluster(Messaging::ExchangeManager &exchangeManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ namespace chip
{
namespace app
{

// Cluster specific command parsing

namespace Clusters
{

namespace AdministratorCommissioning
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -107,7 +104,6 @@ namespace app

namespace DiagnosticLogs
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -152,7 +148,6 @@ namespace app

namespace DoorLock
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -268,7 +263,6 @@ namespace app

namespace GeneralCommissioning
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -333,7 +327,6 @@ namespace app

namespace GeneralDiagnostics
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand All @@ -351,6 +344,16 @@ namespace app
}
break;
}
case Commands::TimeSnapshot::Id: {
Commands::TimeSnapshot::DecodableType commandData;
TLVError = DataModel::Decode(aDataTlv, commandData);
if (TLVError == CHIP_NO_ERROR) {
wasHandled =
emberAfGeneralDiagnosticsClusterTimeSnapshotCallback(
apCommandObj, aCommandPath, commandData);
}
break;
}
default: {
// Unrecognized command ID, error status will apply.
apCommandObj->AddStatus(
Expand Down Expand Up @@ -378,7 +381,6 @@ namespace app

namespace GroupKeyManagement
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -452,7 +454,6 @@ namespace app

namespace IcdManagement
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -516,7 +517,6 @@ namespace app

namespace Identify
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -560,7 +560,6 @@ namespace app

namespace OtaSoftwareUpdateRequestor
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -605,7 +604,6 @@ namespace app

namespace OperationalCredentials
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down Expand Up @@ -719,7 +717,6 @@ namespace app

namespace ThreadNetworkDiagnostics
{

void DispatchServerCommand(CommandHandler *apCommandObj,
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ void MatterDiagnosticLogsPluginServerInitCallback();
void MatterGeneralDiagnosticsPluginServerInitCallback();
void MatterSoftwareDiagnosticsPluginServerInitCallback();
void MatterThreadNetworkDiagnosticsPluginServerInitCallback();
void MatterWiFiNetworkDiagnosticsPluginServerInitCallback();
void MatterAdministratorCommissioningPluginServerInitCallback();
void MatterOperationalCredentialsPluginServerInitCallback();
void MatterGroupKeyManagementPluginServerInitCallback();
Expand All @@ -49,7 +48,6 @@ void MatterDoorLockPluginServerInitCallback();
MatterGeneralDiagnosticsPluginServerInitCallback(); \
MatterSoftwareDiagnosticsPluginServerInitCallback(); \
MatterThreadNetworkDiagnosticsPluginServerInitCallback(); \
MatterWiFiNetworkDiagnosticsPluginServerInitCallback(); \
MatterAdministratorCommissioningPluginServerInitCallback(); \
MatterOperationalCredentialsPluginServerInitCallback(); \
MatterGroupKeyManagementPluginServerInitCallback(); \
Expand Down
3 changes: 0 additions & 3 deletions samples/matter/lock/src/lit/zap-generated/access.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
0x00000030, /* Cluster: General Commissioning, Command: SetRegulatoryConfig, Privilege: administer */ \
0x00000030, /* Cluster: General Commissioning, Command: CommissioningComplete, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Command: ScanNetworks, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Command: AddOrUpdateWiFiNetwork, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Command: AddOrUpdateThreadNetwork, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Command: RemoveNetwork, Privilege: administer */ \
0x00000031, /* Cluster: Network Commissioning, Command: ConnectNetwork, Privilege: administer */ \
Expand Down Expand Up @@ -237,7 +236,6 @@
0x00000002, /* Cluster: General Commissioning, Command: SetRegulatoryConfig, Privilege: administer */ \
0x00000004, /* Cluster: General Commissioning, Command: CommissioningComplete, Privilege: administer */ \
0x00000000, /* Cluster: Network Commissioning, Command: ScanNetworks, Privilege: administer */ \
0x00000002, /* Cluster: Network Commissioning, Command: AddOrUpdateWiFiNetwork, Privilege: administer */ \
0x00000003, /* Cluster: Network Commissioning, Command: AddOrUpdateThreadNetwork, Privilege: administer */ \
0x00000004, /* Cluster: Network Commissioning, Command: RemoveNetwork, Privilege: administer */ \
0x00000006, /* Cluster: Network Commissioning, Command: ConnectNetwork, Privilege: administer */ \
Expand Down Expand Up @@ -277,7 +275,6 @@
kMatterAccessPrivilegeAdminister, /* Cluster: General Commissioning, Command: SetRegulatoryConfig, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: General Commissioning, Command: CommissioningComplete, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Command: ScanNetworks, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Command: AddOrUpdateWiFiNetwork, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Command: AddOrUpdateThreadNetwork, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Command: RemoveNetwork, Privilege: administer */ \
kMatterAccessPrivilegeAdminister, /* Cluster: Network Commissioning, Command: ConnectNetwork, Privilege: administer */ \
Expand Down
8 changes: 0 additions & 8 deletions samples/matter/lock/src/lit/zap-generated/callback-stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
case app::Clusters::ThreadNetworkDiagnostics::Id:
emberAfThreadNetworkDiagnosticsClusterInitCallback(endpoint);
break;
case app::Clusters::WiFiNetworkDiagnostics::Id:
emberAfWiFiNetworkDiagnosticsClusterInitCallback(endpoint);
break;
default:
// Unrecognized cluster ID
break;
Expand Down Expand Up @@ -173,8 +170,3 @@ void __attribute__((weak)) emberAfThreadNetworkDiagnosticsClusterInitCallback(En
// To prevent warning
(void)endpoint;
}
void __attribute__((weak)) emberAfWiFiNetworkDiagnosticsClusterInitCallback(EndpointId endpoint)
{
// To prevent warning
(void)endpoint;
}
Loading

0 comments on commit c691fce

Please sign in to comment.