Skip to content

Commit

Permalink
Restyled by prettier-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jul 25, 2022
1 parent 4b2f479 commit bfd1144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions examples/all-clusters-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ to be On or Off.
$ ./chip-tool onoff on <nodeID> 1
$ ./chip-tool onoff off <nodeID> 1


## Running RPC Console

- Connect a USB-TTL adapter as shown below
Expand All @@ -99,7 +98,6 @@ to be On or Off.
A18 RX
GND GND


* Build the
[chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)

Expand All @@ -110,20 +108,16 @@ to be On or Off.

$ pip3 install out/debug/chip_rpc_console_wheels/*.whl


- Launch the chip-rpc console after resetting Ameba board

$ chip-console --device /dev/tty<port connected to USB-TTL adapter> -b 115200


* Get and Set lighting directly using the RPC console

python
rpcs.chip.rpc.Lighting.Get()
rpcs.chip.rpc.Lighting.Set(on=True, level=128, color=protos.chip.rpc.LightingColor(hue=5, saturation=5))



## Running Matter Shell

- Matter Shell is enabled whenever RPC is disabled.
Expand All @@ -135,7 +129,6 @@ to be On or Off.

- Open the USB-TTL serial port and type `help` to view the available commands


## Binding and Controlling a Lighting Device

- This example shows how to bind a Switch Device to a Lighting Device and
Expand All @@ -148,13 +141,11 @@ to be On or Off.
$ ./chip-tool pairing ble-wifi 1 <SSID> <PASSWORD> 20202021 3840
$ ./chip-tool pairing ble-wifi 2 <SSID> <PASSWORD> 20202021 3840


- After successful commissioning, configure the ACL in the lighting device to
* After successful commissioning, configure the ACL in the lighting device to
allow access from switch device and chip-tool.

$ ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1], "targets": null }]' 2 0


- Bind the lighting device to the switch device.

$ ./chip-tool binding write binding '[{"fabricIndex": 1, "node":2, "endpoint":1, "cluster":6}]' 1 1
Expand Down
11 changes: 1 addition & 10 deletions examples/light-switch-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ to be On or Off.
$ ./chip-tool onoff on <nodeID> 1
$ ./chip-tool onoff off <nodeID> 1


## Running RPC Console

- Connect a USB-TTL adapter as shown below
Expand All @@ -98,7 +97,6 @@ to be On or Off.
A18 RX
GND GND


* Build the
[chip-rpc console](https://github.com/project-chip/connectedhomeip/tree/master/examples/common/pigweed/rpc_console)

Expand All @@ -109,20 +107,16 @@ to be On or Off.

$ pip3 install out/debug/chip_rpc_console_wheels/*.whl


- Launch the chip-rpc console after resetting Ameba board

$ chip-console --device /dev/tty<port connected to USB-TTL adapter> -b 115200


* Get and Set lighting directly using the RPC console

python
rpcs.chip.rpc.Lighting.Get()
rpcs.chip.rpc.Lighting.Set(on=True, level=128, color=protos.chip.rpc.LightingColor(hue=5, saturation=5))



## Running Matter Shell

- Matter Shell is enabled whenever RPC is disabled.
Expand All @@ -134,7 +128,6 @@ to be On or Off.

- Open the USB-TTL serial port and type `help` to view the available commands


## Binding and Controlling a Lighting Device

- This example shows how to bind a Switch Device to a Lighting Device and
Expand All @@ -147,13 +140,11 @@ to be On or Off.
$ ./chip-tool pairing ble-wifi 1 <SSID> <PASSWORD> 20202021 3840
$ ./chip-tool pairing ble-wifi 2 <SSID> <PASSWORD> 20202021 3840


- After successful commissioning, configure the ACL in the lighting device to
* After successful commissioning, configure the ACL in the lighting device to
allow access from switch device and chip-tool.

$ ./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [1], "targets": null }]' 2 0


- Bind the lighting device to the switch device.

$ ./chip-tool binding write binding '[{"fabricIndex": 1, "node":2, "endpoint":1, "cluster":6}]' 1 1
Expand Down

0 comments on commit bfd1144

Please sign in to comment.