Skip to content

Commit

Permalink
[Build Bustage] 'EmberAfClusterId' has not been declared (#3876)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored Nov 17, 2020
1 parent 280f568 commit a8f0fdc
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions examples/lock-app/qpg6100/src/ZclCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

using namespace ::chip;

void emberAfPostAttributeChangeCallback(uint8_t endpoint, EmberAfClusterId clusterId, EmberAfAttributeId attributeId, uint8_t mask,
void emberAfPostAttributeChangeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, uint8_t mask,
uint16_t manufacturerCode, uint8_t type, uint8_t size, uint8_t * value)
{
if (clusterId != ZCL_ON_OFF_CLUSTER_ID)
Expand All @@ -55,15 +55,23 @@ void emberAfPostAttributeChangeCallback(uint8_t endpoint, EmberAfClusterId clust
}
}

/** @brief On/off Cluster Server Post Init
/** @brief Cluster Init
*
* Following resolution of the On/Off state at startup for this endpoint,
* perform any additional initialization needed; e.g., synchronize hardware
* state.
* This function is called when a specific cluster is initialized. It gives the
* application an opportunity to take care of cluster initialization procedures.
* It is called exactly once for each endpoint where cluster is present.
*
* @param endpoint Ver.: always
* @param clusterId Ver.: always
*
* TODO Issue #3841
* emberAfClusterInitCallback happens before the stack initialize the cluster
* attributes to the default value.
* The logic here expects something similar to the deprecated Plugins callback
* emberAfPluginOnOffClusterServerPostInitCallback.
*
* @param endpoint Endpoint that is being initialized Ver.: always
*/
void emberAfPluginOnOffClusterServerPostInitCallback(uint8_t endpoint)
void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
{
GetAppTask().UpdateClusterState();
}

0 comments on commit a8f0fdc

Please sign in to comment.