Skip to content

Commit 80fe797

Browse files
samples: matter: The DevKitName attribute must persist after reboot
There was a wrong configuration for the DevKitName attribute. It was stored in RAM, whereas it should be stored in NVM. Signed-off-by: Arkadiusz Balys <[email protected]>
1 parent 3d3171a commit 80fe797

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samples/matter/manufacturer_specific/src/default_zap/manufacturer_specific.matter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ endpoint 1 {
17211721
callback attribute attributeList;
17221722
ram attribute featureMap default = 0;
17231723
ram attribute clusterRevision default = 1;
1724-
ram attribute devKitName default = "Nordic Development Kit";
1724+
persist attribute devKitName default = "Nordic Development Kit";
17251725
ram attribute userLED default = false;
17261726
ram attribute userButton default = false;
17271727

samples/matter/manufacturer_specific/src/default_zap/manufacturer_specific.zap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@
26292629
"side": "server",
26302630
"type": "char_string",
26312631
"included": 1,
2632-
"storageOption": "RAM",
2632+
"storageOption": "NVM",
26332633
"singleton": 0,
26342634
"bounded": 0,
26352635
"defaultValue": "Nordic Development Kit",

samples/matter/manufacturer_specific/src/default_zap/zap-generated/endpoint_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
\
318318
/* Endpoint: 1, Cluster: NordicDevKit (server) */ \
319319
{ ZAP_LONG_DEFAULTS_INDEX(8), 0xFFF10000, 255, ZAP_TYPE(CHAR_STRING), \
320-
ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* DevKitName */ \
320+
ZAP_ATTRIBUTE_MASK(TOKENIZE) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* DevKitName */ \
321321
{ ZAP_SIMPLE_DEFAULT(false), 0xFFF10001, 1, ZAP_TYPE(BOOLEAN), 0 }, /* UserLED */ \
322322
{ ZAP_SIMPLE_DEFAULT(false), 0xFFF10002, 1, ZAP_TYPE(BOOLEAN), 0 }, /* UserButton */ \
323323
{ ZAP_SIMPLE_DEFAULT(0), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \

0 commit comments

Comments
 (0)