Skip to content

Commit

Permalink
Remove sudo for chip-tool commands (#35)
Browse files Browse the repository at this point in the history
Chip Tool snap has changed and now works without root privileges:
canonical/chip-tool-snap#55
  • Loading branch information
farshidtz authored Jul 4, 2024
1 parent 66b2f75 commit f580f78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions how-to/chip-tool-commission-and-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Commission

.. code:: shell
sudo chip-tool pairing onnetwork 110 20202021
chip-tool pairing onnetwork 110 20202021
where:

Expand Down Expand Up @@ -116,7 +116,7 @@ Commission

.. code:: shell
sudo chip-tool pairing ble-thread 110 hex:0e08...f7f8 20202021 3840
chip-tool pairing ble-thread 110 hex:0e08...f7f8 20202021 3840
where:

Expand All @@ -134,7 +134,7 @@ Toggle:

.. code:: shell
sudo chip-tool onoff toggle 110 1
chip-tool onoff toggle 110 1
where:

Expand Down
8 changes: 4 additions & 4 deletions how-to/matter-and-thread-on-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ sudo openthread-border-router.ot-ctl dataset active -x

Now, pair the Thread device over BLE:
```bash
sudo chip-tool pairing ble-thread 110 hex:<active-dataset> 20202021 3840
chip-tool pairing ble-thread 110 hex:<active-dataset> 20202021 3840
```
where:
- `110` is the assigned node ID for the app.
Expand All @@ -147,13 +147,13 @@ If it didn't work, it may be because it has taken too long to reach this step an

There are a few ways to control the device. The `toggle` command is stateless and the simplest:
```bash
sudo chip-tool onoff toggle 110 1
chip-tool onoff toggle 110 1
```

To turn on and off:
```bash
sudo chip-tool onoff on 110 1
sudo chip-tool onoff off 110 1
chip-tool onoff on 110 1
chip-tool onoff off 110 1
```


Expand Down
6 changes: 3 additions & 3 deletions tutorial/pi-gpio-commander.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Assuming the Pi and PC are connected to the same network, we should be able to c
To pair:
```bash
sudo chip-tool pairing onnetwork 110 20202021
chip-tool pairing onnetwork 110 20202021
```
where:
- `110` is the node id being assigned to this device
Expand All @@ -241,7 +241,7 @@ we should be able to discover the Border Router via DNS-SD.
Pair the Thread device over Bluetooth LE
```bash
sudo chip-tool pairing ble-thread 110 hex:<active-dataset> 20202021 3840
chip-tool pairing ble-thread 110 hex:<active-dataset> 20202021 3840
```
where:
- `110` is the assigned node ID for the app.
Expand All @@ -260,7 +260,7 @@ If this doesn't work, it may be because it has taken too long to reach this step
## Control
There are a few ways to control the device. The `toggle` command is stateless and simplest.
```
sudo chip-tool onoff toggle 110 1
chip-tool onoff toggle 110 1
```

<!-- links -->
Expand Down

0 comments on commit f580f78

Please sign in to comment.