From ec8ee38a3b9960ed36e6c47812e82e3bc5c7dda8 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Wed, 19 Jun 2024 11:49:06 -0400 Subject: [PATCH] YAML documentation: Add commissioning example (#34013) --- docs/testing/yaml.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/testing/yaml.md b/docs/testing/yaml.md index 0cf53814d5fe5c..9f65b1fed426b5 100644 --- a/docs/testing/yaml.md +++ b/docs/testing/yaml.md @@ -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