Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sudo for chip-tool commands #35

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading