Skip to content

Updated docs regarding attributes updates in window covering cluster. #18840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,12 @@ bool emberAfWindowCoveringClusterGoToTiltPercentageCallback(app::CommandHandler

/**
* @brief Cluster Attribute Changed Callback
*
* The method is implemented by default as a weak function and it takes care about updating
* the server attribute values by calling PostAttributeChange method. In case of overriding the method
* by the application, it needs to handle updating attributes using its own way or either calling
* PostAttributeChange method.
*
*/
void __attribute__((weak))
MatterWindowCoveringClusterServerAttributeChangedCallback(const app::ConcreteAttributePath & attributePath)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ void TiltPositionSet(chip::EndpointId endpoint, NPercent100ths position);
EmberAfStatus GetMotionLockStatus(chip::EndpointId endpoint);

/**
* @brief PostAttributeChange is called when an Attribute is modified
* @brief PostAttributeChange is called when an Attribute is modified.
*
* The method is called by the MatterWindowCoveringClusterServerAttributeChangedCallback
* to update cluster attributes values. In case of overriding the MatterWindowCoveringClusterServerAttributeChangedCallback
* by the application, it should call the PostAttributeChange on its own.
*
* @param[in] endpoint
* @param[in] attributeId
Expand Down