Skip to content

Commit

Permalink
Remove sudo for chip-tool commands
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 committed Jul 1, 2024
1 parent 7f5e21a commit 5312411
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 @@ -74,7 +74,7 @@ Commission

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

Expand Down Expand Up @@ -117,7 +117,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 @@ -135,7 +135,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 @@ -132,7 +132,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 @@ -149,13 +149,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 @@ -180,7 +180,7 @@ sudo snap connect chip-tool:avahi-observe
We are ready 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 @@ -207,7 +207,7 @@ the corresponding Debian packages / Snaps need to be installed in advance.
Now, 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 @@ -226,7 +226,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 5312411

Please sign in to comment.