Skip to content

Commit

Permalink
YAML documentation: Add commissioning example (#34013)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored and pull[bot] committed Aug 12, 2024
1 parent 8d0b003 commit 1108996
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/testing/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,16 @@ NOTE: use the target appropriate to your system

[chiptool.py](https://github.com/project-chip/connectedhomeip/blob/master/scripts/tests/chipyaml/chiptool.py)
can be used to run tests against a commissioned DUT (commissioned by chip-tool).
This will start an interactive instance of chip-tool automatically.
To commission a DUT using chip-tool use the pairing command. For example:

```
./out/linux-x64-chip-tool/chip-tool pairing code 0x12344321 MT:-24J0AFN00KA0648G00
```

In this example, 0x12344321 is the node ID (0x12344321 is the test default) and
MT:-24J0AFN00KA0648G00 is the QR code.

The chiptool.py tool can then be used to run the tests. For example:

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

0 comments on commit 1108996

Please sign in to comment.