Skip to content

Commit

Permalink
Add attributePath parameter to Door Lock Server's unhandledAttributeC…
Browse files Browse the repository at this point in the history
…hanged API
  • Loading branch information
jrhees-cae committed Jul 6, 2022
1 parent 2fde7ef commit de2e5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3576,7 +3576,7 @@ MatterDoorLockClusterServerPreAttributeChangedCallback(const chip::app::Concrete
break;

default:
res = emberAfPluginDoorLockOnUnhandledAttributeChange(attributePath.mEndpointId, attributeType, size, value);
res = emberAfPluginDoorLockOnUnhandledAttributeChange(attributePath.mEndpointId, attributePath, attributeType, size, value);
break;
}

Expand Down Expand Up @@ -3666,8 +3666,8 @@ emberAfPluginDoorLockOnUserCodeTemporaryDisableTimeChange(chip::EndpointId Endpo
}

chip::Protocols::InteractionModel::Status __attribute__((weak))
emberAfPluginDoorLockOnUnhandledAttributeChange(chip::EndpointId EndpointId, EmberAfAttributeType attrType, uint16_t attrSize,
uint8_t * attrValue)
emberAfPluginDoorLockOnUnhandledAttributeChange(chip::EndpointId EndpointId, const chip::app::ConcreteAttributePath & attributePath,
EmberAfAttributeType attrType, uint16_t attrSize, uint8_t * attrValue)
{
return chip::Protocols::InteractionModel::Status::Success;
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/clusters/door-lock-server/door-lock-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ chip::Protocols::InteractionModel::Status emberAfPluginDoorLockOnUserCodeTempora
* @brief Cluster attribute pre-change callback
*
* @param EndpointId endpoint for which attribute is changing
* @param attributePath concrete attribute path that is changing
* @param attrType attribute that is going to be changed
* @param attrSize attribute value storage size
* @param attrValue attribute value to set
Expand All @@ -746,6 +747,7 @@ chip::Protocols::InteractionModel::Status emberAfPluginDoorLockOnUserCodeTempora
* @retval any other InteractionModel::Status value to forbid attribute change
*/
chip::Protocols::InteractionModel::Status emberAfPluginDoorLockOnUnhandledAttributeChange(chip::EndpointId EndpointId,
const chip::app::ConcreteAttributePath & attributePath,
EmberAfAttributeType attrType,
uint16_t attrSize, uint8_t * attrValue);

Expand Down

0 comments on commit de2e5de

Please sign in to comment.