You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever there is a write request on the Matter attribute:
The static/fixed constraints are checked in emAfWriteAttribute.
MatterPreAttributeChangeCallback is called before updating an attribute.
During the attribute update, dynamic constraints are checked in the server implementation of a cluster.
After successfully passing the above steps, MatterPostAttributeChangeCallback is called.
If the application wants to update one of its drivers, when should that be done: in the Pre or Post AttributeChangeCallback?
If the driver is updated in the PreAttributeChangeCallback and the server constraint check fails, then the Matter attribute will remain unchanged. However, the driver will have updated its state, leading to inconsistency.
If the driver is updated in the PostAttributeChangeCallback and the application fails to update the driver, the Matter storage will be updated, but the driver will not. Again, this results in inconsistency.
How should such cases be handled? Should the PostAttributeChangeCallback have a return type and rollback mechanics in case the application returns an error in the PostAttributeChangeCallback?
The text was updated successfully, but these errors were encountered:
Whenever there is a write request on the Matter attribute:
emAfWriteAttribute
.MatterPreAttributeChangeCallback
is called before updating an attribute.server implementation
of a cluster.MatterPostAttributeChangeCallback
is called.If the application wants to update one of its drivers, when should that be done: in the Pre or Post AttributeChangeCallback?
How should such cases be handled? Should the PostAttributeChangeCallback have a return type and rollback mechanics in case the application returns an error in the PostAttributeChangeCallback?
The text was updated successfully, but these errors were encountered: