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:
Shubham Patil
2024-01-08 15:31:54 +05:30
parent 89f47b6c8a
commit 68714c0e2d
16 changed files with 38 additions and 72 deletions
-12
View File
@@ -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