-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ZAP external attributes are size 0, and fails datalen check when trying to write #21898
Comments
The above statements don't quite line up what I see in the code. External attributes do still have valid size fields setup in the generated AttributeMetadata tables:
The only ones that don't have a valid size are those of type struct or array. Those cannot be handled by the Ember layer anyways. |
strange, all my external attributes have a size 0. My ram attributes have actual size (example): /* Endpoint: 1, Cluster: On/Off (server) / Maybe its an issue in my zap revision, will double check it all. |
I updated the ZAP and this issue seems to be addressed. Closing issue. |
When you mark an attribute as external (storing in external flash), the size field in the generated endpoints.h gets set to 0 for that attribute.
When that attribute is written to it goes through WriteSingleClusterData() in ember-compatibility-functions.cpp. In that function is does a check "if (dataLen > attributeMetadata->size)", which fails since the attribute size is 0. This results in an error 0x87, constraint error.
The text was updated successfully, but these errors were encountered: