@@ -217,7 +217,7 @@ Each `Clusters.<ClusterName>.Structs.<StructName>` has:
217
217
218
218
Example:
219
219
220
- ```
220
+ ``` python
221
221
Clusters.BasicInformation.Structs.ProductAppearanceStruct(
222
222
finish = Clusters.BasicInformation.Enums.ProductFinishEnum.kFabric,
223
223
primaryColor = Clusters.BasicInformation.Enums.ColorEnum.kBlack)
@@ -293,7 +293,7 @@ Multi-path
293
293
294
294
Example:
295
295
296
- ```
296
+ ``` python
297
297
urgent = 1
298
298
299
299
await dev_ctrl ReadEvent(node_id, [(1 ,
@@ -359,7 +359,7 @@ asserts.assert_equal(ret[0].status, Status.Success, “write failed”)
359
359
360
360
Example:
361
361
362
- ```
362
+ ``` python
363
363
pai = await dev_ctrl.SendCommand(nodeid, 0 , Clusters.OperationalCredentials.Commands.CertificateChainRequest(2 ))
364
364
```
365
365
@@ -387,7 +387,7 @@ class provides some helpers for Mobly integration.
387
387
388
388
use as:
389
389
390
- ```
390
+ ``` python
391
391
if __name__ == " __main__" :
392
392
default_matter_test_main()
393
393
```
479
479
480
480
To create a controller on a new fabric:
481
481
482
- ```
482
+ ``` python
483
483
new_CA = self .certificate_authority_manager.NewCertificateAuthority()
484
484
485
485
new_fabric_admin = new_certificate_authority.NewFabricAdmin(vendorId = 0x FFF1 ,
@@ -490,7 +490,7 @@ TH2 = new_fabric_admin.NewController(nodeId=112233)
490
490
491
491
Open a commissioning window (ECW):
492
492
493
- ```
493
+ ``` python
494
494
params = self .OpenCommissioningWindow(dev_ctrl = self .default_controller, node_id = self .dut_node_id)
495
495
```
496
496
@@ -499,7 +499,7 @@ the fabric admin.
499
499
500
500
Fabric admin for default controller:
501
501
502
- ```
502
+ ``` python
503
503
fa = self .certificate_authority_manager.activeCaList[0 ].adminList[0 ]
504
504
second_ctrl = fa.new_fabric_admin.NewController(nodeId = node_id)
505
505
```
@@ -577,13 +577,13 @@ running. To compile and install the wheel, do the following:
577
577
578
578
First activate the matter environment using either
579
579
580
- ```
580
+ ``` shell
581
581
. ./scripts/bootstrap.sh
582
582
```
583
583
584
584
or
585
585
586
- ```
586
+ ``` shell
587
587
. ./scripts/activate.sh
588
588
```
589
589
@@ -592,7 +592,7 @@ subsequent setups as it is faster.
592
592
593
593
Next build the python wheels and create / activate a venv
594
594
595
- ```
595
+ ``` shell
596
596
./scripts/build_python.sh -i out/python_env
597
597
source out/python_env/bin/activate
598
598
```
@@ -609,15 +609,15 @@ that will be commissioned either over BLE or WiFi.
609
609
610
610
For example, to run the TC-ACE-1.2 tests against an un-commissioned DUT:
611
611
612
- ```
612
+ ``` shell
613
613
python3 src/python_testing/TC_ACE_1_2.py --commissioning-method on-network --qr-code MT:-24J0AFN00KA0648G00
614
614
```
615
615
616
616
Some tests require additional arguments (ex. PIXITs or configuration variables
617
617
for the CI). These arguments can be passed as sets of key/value pairs using the
618
618
` --<type>-arg:<value> ` command line arguments. For example:
619
619
620
- ```
620
+ ``` shell
621
621
--int-arg PIXIT.ACE.APPENDPOINT:1 --int-arg PIXIT.ACE.APPDEVTYPEID:0x0100 --string-arg PIXIT.ACE.APPCLUSTER:OnOff --string-arg PIXIT.ACE.APPATTRIBUTE:OnOff
622
622
```
623
623
0 commit comments