You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/matter/manufacturer_specific/README.rst
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ Overview
48
48
Matter command ``SetLED`` is used to control the state of ``UserLED``.
49
49
It takes one argument - the action to be performed (``0`` to turn the LED off, ``1`` to turn it on, ``2`` to toggle the state).
50
50
**LED 2** reflects the state of the ``UserLED``.
51
-
``NordicDevkit`` cluster additionally introduces a writable ``DevKitName`` attribute, of string type.
51
+
The ``NordicDevkit`` cluster introduces a writable ``DevKitName`` attribute, of string type as well.
52
+
The sample additionally extends the ``Basic Information`` cluster with a ``RandomNumber`` attribute and ``GenerateRandom`` command that updates the ``RandomNumber`` with a random value.
52
53
53
54
.. group-tab:: nRF54 DKs
54
55
@@ -59,7 +60,8 @@ Overview
59
60
Matter command ``SetLED`` is used to control the state of ``UserLED``.
60
61
It takes one argument - the action to be performed (``0`` to turn the LED off, ``1`` to turn it on, ``2`` to toggle the state).
61
62
**LED 1** reflects the state of the ``UserLED``.
62
-
``NordicDevkit`` cluster additionally introduces a writable ``DevKitName`` attribute, of string type.
63
+
The ``NordicDevkit`` cluster introduces a writable ``DevKitName`` attribute, of string type as well.
64
+
The sample additionally extends the ``Basic Information`` cluster with a ``RandomNumber`` attribute and ``GenerateRandom`` command that updates the ``RandomNumber`` with a random value.
63
65
64
66
65
67
Custom manufacturer-specific cluster
@@ -227,7 +229,7 @@ To test ``NordicDevkit`` cluster's attributes and commands, complete the followi
227
229
228
230
chip-tool interactive start
229
231
230
-
#. Read the attributes by index:
232
+
#. Read the ``NordicDevkit`` cluster's attributes by index:
231
233
232
234
.. parsed-literal::
233
235
:class: highlight
@@ -261,8 +263,23 @@ To test ``NordicDevkit`` cluster's attributes and commands, complete the followi
261
263
262
264
any subscribe-by-id 0xFFF1FC01 3 0 120 1 1
263
265
264
-
#. Press the button assigned to the ``UserButton``, check if the attribute state is updated in the chip-tool.
265
-
#. Reboot the device, restart chip-tool and check if the attributes are persisting after joining the network.
266
+
#. Press the button assigned to the ``UserButton`` and check if the attribute state is updated in the chip-tool.
267
+
#. Read the ``Basic Information`` cluster's ``RandomNumber`` attribute:
268
+
269
+
.. parsed-literal::
270
+
:class: highlight
271
+
272
+
any read-by-id 0x0028 0x17 1 0
273
+
274
+
#. Send the ``GenerateRandom`` command to the device to update the ``RandomNumber`` attribute:
275
+
276
+
.. parsed-literal::
277
+
:class: highlight
278
+
279
+
any command-by-id 0x0028 0 '{}' 1 0
280
+
281
+
#. Verify that the random value has been generated and the attribute value is updated.
282
+
#. Reboot the device, restart the chip-tool, and check if the attributes are persisting after joining the network.
0 commit comments