Skip to content

Commit ec8ee38

Browse files
authored
YAML documentation: Add commissioning example (#34013)
1 parent 38f664f commit ec8ee38

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/testing/yaml.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,16 @@ NOTE: use the target appropriate to your system
349349

350350
[chiptool.py](https://github.com/project-chip/connectedhomeip/blob/master/scripts/tests/chipyaml/chiptool.py)
351351
can be used to run tests against a commissioned DUT (commissioned by chip-tool).
352-
This will start an interactive instance of chip-tool automatically.
352+
To commission a DUT using chip-tool use the pairing command. For example:
353+
354+
```
355+
./out/linux-x64-chip-tool/chip-tool pairing code 0x12344321 MT:-24J0AFN00KA0648G00
356+
```
357+
358+
In this example, 0x12344321 is the node ID (0x12344321 is the test default) and
359+
MT:-24J0AFN00KA0648G00 is the QR code.
360+
361+
The chiptool.py tool can then be used to run the tests. For example:
353362

354363
```
355364
./scripts/tests/chipyaml/chiptool.py tests Test_TC_OO_2_1 --server_path ./out/linux-x64-chip-tool/chip-tool

0 commit comments

Comments
 (0)