Skip to content

Commit

Permalink
Merge pull request #2555 from reubenmiller/docs-smartrest-reconnect-i…
Browse files Browse the repository at this point in the history
…nstructions

docs: add instructions to reconnect with c8y after changing settings
  • Loading branch information
reubenmiller authored Jan 3, 2024
2 parents c16662f + 0cfe7f2 commit b58a46b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/src/operate/c8y/smartrest_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ To add new template to `thin-edge.io` the `tedge config` cli tool can be used as
sudo tedge config set c8y.smartrest.templates template-1,template-2
```

After adding or removing a template, you will need to run the following command before thin-edge.io will use the new settings:

```sh
sudo tedge reconnect c8y
```

:::note
To add/append a new template to a device that's already configured with some, all the existing templates should also be declared along with the new one in the `tedge config set` command.
For example, if `template-1` is already configured on the device, as following:
Expand Down Expand Up @@ -91,3 +97,9 @@ tedge config get c8y.smartrest.templates
```toml title="Output"
["template-1"]
```

After adding or removing a template, you will need to run the following command before thin-edge.io will use the new settings:

```sh
sudo tedge reconnect c8y
```

0 comments on commit b58a46b

Please sign in to comment.