Skip to content

Commit

Permalink
Enable Identify Server Cluster on endpoint 2 and regenerate zap
Browse files Browse the repository at this point in the history
  • Loading branch information
PSONALl committed Jan 20, 2022
1 parent d395a6d commit b8c1683
Show file tree
Hide file tree
Showing 5 changed files with 3,040 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17173,7 +17173,7 @@
"mfgCode": null,
"define": "IDENTIFY_CLUSTER",
"side": "server",
"enabled": 0,
"enabled": 1,
"commands": [
{
"name": "IdentifyQueryResponse",
Expand Down Expand Up @@ -20139,4 +20139,4 @@
"deviceIdentifier": 22
}
]
}
}
9 changes: 5 additions & 4 deletions examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ using namespace ::chip;
using namespace ::chip::Inet;
using namespace ::chip::System;
using namespace ::chip::DeviceLayer;
using namespace chip::app;

constexpr uint32_t kIdentifyTimerDelayMS = 250;

Expand Down Expand Up @@ -145,19 +146,19 @@ void DeviceCallbacks::PostAttributeChangeCallback(EndpointId endpointId, Cluster

switch (clusterId)
{
case ZCL_ON_OFF_CLUSTER_ID:
case Clusters::OnOff::Id:
OnOnOffPostAttributeChangeCallback(endpointId, attributeId, value);
break;

case ZCL_LEVEL_CONTROL_CLUSTER_ID:
case Clusters::LevelControl::Id:
OnLevelControlAttributeChangeCallback(endpointId, attributeId, value);
break;
#if CONFIG_DEVICE_TYPE_ESP32_C3_DEVKITM
case ZCL_COLOR_CONTROL_CLUSTER_ID:
case Clusters::ColorControl::Id:
OnColorControlAttributeChangeCallback(endpointId, attributeId, value);
break;
#endif
case ZCL_IDENTIFY_CLUSTER_ID:
case Clusters::Identify::Id:
OnIdentifyPostAttributeChangeCallback(endpointId, attributeId, value);
break;
default:
Expand Down
Loading

0 comments on commit b8c1683

Please sign in to comment.