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

Update tedge plugin specs after c8y-mapper change #2216

Merged
merged 3 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 6 additions & 6 deletions docs/src/references/tedge-configuration-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ For example, it subscribes to the following topic for the main device.
tedge mqtt sub 'te/device/main///cmd/config_snapshot/+'
```

When a new config snapshot command with the ID "1234" is published by another component, it appears as follows.
When a new config snapshot command with the ID "1234" is published for the device named "example" by another component, it appears as follows.
rina23q marked this conversation as resolved.
Show resolved Hide resolved

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot/1234' '{
"status": "init",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_snapshot/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/config_snapshot/mosquitto-1234",
"type": "mosquitto"
}'
```
Expand All @@ -170,7 +170,7 @@ As a result, the operation status update message for the example above looks lik
```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot/1234' '{
"status": "successful",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_snapshot/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/config_snapshot/mosquitto-1234",
"type": "mosquitto",
"path": "/etc/mosquitto/mosquitto.conf"
}'
Expand Down Expand Up @@ -207,13 +207,13 @@ For example, it subscribes to the following topic for the main device.
tedge mqtt sub 'te/device/main///cmd/config_update/+'
```

When a new config update command with the ID "1234" is published by another component,
When a new config update command with the ID "1234" is published for the device named "example" by another component,
it appears as below.
rina23q marked this conversation as resolved.
Show resolved Hide resolved

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_update/1234' '{
"status": "init",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_update/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/config_update/mosquitto-1234",
"remoteUrl": "http://www.my.url",
"type": "mosquitto"
}'
Expand All @@ -239,7 +239,7 @@ As a result, the operation status update message for the example above looks lik
```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_update/1234' '{
"status": "successful",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_update/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/config_update/mosquitto-1234",
"remoteUrl": "http://www.my.url",
"type": "mosquitto",
"path": "/etc/mosquitto/mosquitto.conf"
Expand Down
6 changes: 3 additions & 3 deletions docs/src/references/tedge-log-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ For example, it subscribes to the following topic for the main device.
tedge mqtt sub 'te/device/main///cmd/log_upload/+'
```

A new log file upload command with the ID "1234" is published by another component as below.
A new log file upload command with the ID "1234" is published for the device named "example" by another component as below.

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/log_upload/1234' '{
"status": "init",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/log_upload/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/log_upload/mosquitto-1234",
"type": "mosquitto",
"dateFrom": "2013-06-22T17:03:14.000+02:00",
"dateTo": "2013-06-23T18:03:14.000+02:00",
Expand Down Expand Up @@ -111,7 +111,7 @@ Thus, the operation status update message for the above example looks like below
tedge mqtt pub -r 'te/device/main///cmd/log_upload/1234' '{
"status": "failed",
"reason": "The target log file for 'mosquitto' does not exist.",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/log_upload/mosquitto-1234",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/example/log_upload/mosquitto-1234",
"type": "mosquitto",
"dateFrom": "2013-06-22T17:03:14.000+02:00",
"dateTo": "2013-06-22T18:03:14.000+02:00",
Expand Down
Loading