mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Ensure backward compatibility for attributes stored in NVS with
primitive data type Removed config option ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE. Previously, the ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE option determined whether to store attributes as a blob or a primitive data type in NVS. Since this configuration is not backward compatible, we now read the attribute as a primitive data type if not found. If it's a blob, we read it and rewrite it as a primitive data type.
This commit is contained in:
@@ -210,18 +210,6 @@ menu "ESP Matter"
|
||||
|
||||
endchoice #ESP_MATTER_MEM_ALLOC_MODE
|
||||
|
||||
config ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE
|
||||
bool "Use compact attribute storage"
|
||||
default n
|
||||
help
|
||||
Attributes can be stored as primitive data type or blob in NVS.
|
||||
This option lets you select which one to use.
|
||||
|
||||
If enabled, attributes are stored as primitive data types in NVS.
|
||||
If disabled, then attributes are stored as blob which consumes more space in NVS.
|
||||
|
||||
This option is kept disabled by default to maintain the backward compatibility.
|
||||
|
||||
config ESP_MATTER_ENABLE_DATA_MODEL
|
||||
bool "Use ESP-Matter data model"
|
||||
default y
|
||||
|
||||
Reference in New Issue
Block a user