components/esp_matter: extend set val for internally managed writable

attributes

- re-implemented the set_val to set them using the TLV buffer for an
  attribute using DataModelProvider::WriteAttribute() API.

- renamed older set_val() to set_val_internal() and made it private.

- changed the set_val's occurances with set_val_internal inside the
  component. Since our sdk should not be worrying about getting data
  from the internally managed attributes, its safe to use the
  set_val_internal().

- updated release notes
This commit is contained in:
Shubham Patil
2025-11-25 18:55:15 +05:30
parent e322e230df
commit a87107fb15
8 changed files with 185 additions and 33 deletions
+15
View File
@@ -1,3 +1,18 @@
# 27-Nov-2025
### Feature: attribute::get_val() and attribute::set_val() APIs
- `attribute::get_val()`
- API now supports getting the value of internally managed attributes of primitive data types.
- Complex types are not supported yet, eg: (Array, Struct, List, etc.)
- `attribute::set_val()`
- API now supports setting the value of internally managed attributes which are writable and of data type primitive.
- Attributes which are not writable but managed internally are not supported yet
- Complex types are not supported yet, eg: (Array, Struct, List, etc.)
- For unsupported attributes, the APIs will return `ESP_ERR_NOT_SUPPORTED`,
please use the cluster-specific setter APIs.
## 21-Nov-2025
### API Changes: Attribute Creation Function Names