From be138391533ed76fe51efa7441671c79f2a085d2 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Tue, 2 Jan 2024 10:33:15 +0100 Subject: [PATCH 1/2] docs: add instructions to reconnect with c8y after changing settings Signed-off-by: Reuben Miller --- docs/src/operate/c8y/smartrest_templates.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/operate/c8y/smartrest_templates.md b/docs/src/operate/c8y/smartrest_templates.md index 09e55b1178b..0518e6396e9 100644 --- a/docs/src/operate/c8y/smartrest_templates.md +++ b/docs/src/operate/c8y/smartrest_templates.md @@ -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 +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: @@ -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 +tedge reconnect c8y +``` From 0cfe7f2e4587749930aa3099960f5d4223b0ee31 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 3 Jan 2024 15:15:15 +0100 Subject: [PATCH 2/2] docs: use sudo running reconnect Signed-off-by: Reuben Miller --- docs/src/operate/c8y/smartrest_templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/operate/c8y/smartrest_templates.md b/docs/src/operate/c8y/smartrest_templates.md index 0518e6396e9..cd718048484 100644 --- a/docs/src/operate/c8y/smartrest_templates.md +++ b/docs/src/operate/c8y/smartrest_templates.md @@ -40,7 +40,7 @@ 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 -tedge reconnect c8y +sudo tedge reconnect c8y ``` :::note @@ -101,5 +101,5 @@ tedge config get c8y.smartrest.templates After adding or removing a template, you will need to run the following command before thin-edge.io will use the new settings: ```sh -tedge reconnect c8y +sudo tedge reconnect c8y ```