-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3000 from reubenmiller/docs-user-context
docs: improve mapper documentation via adding user-context
- Loading branch information
Showing
5 changed files
with
283 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,19 @@ tags: [Operate, Cloud] | |
description: Connecting %%te%% to Cumulocity IoT | ||
--- | ||
|
||
import UserContext from '@site/src/components/UserContext'; | ||
import UserContextForm from '@site/src/components/UserContextForm'; | ||
|
||
:::tip | ||
#### User Context {#user-context} | ||
|
||
You can customize the documentation and commands shown on this page by providing relevant settings which will be reflected in the instructions. It makes it even easier to explore and use %%te%%. | ||
|
||
<UserContextForm settings="DEVICE_ID,C8Y_URL,C8Y_USER" /> | ||
|
||
The user context will be persisted in your web browser's local storage. | ||
::: | ||
|
||
To create northbound connection a local bridge shall be established and this can be achieved with `tedge` cli and following commands: | ||
|
||
:::note | ||
|
@@ -14,10 +27,14 @@ To create northbound connection a local bridge shall be established and this can | |
|
||
Configure required parameters for %%te%% with [`tedge config set`](../../references/cli/tedge-config.md): | ||
|
||
<UserContext> | ||
|
||
```sh | ||
sudo tedge config set c8y.url example.cumulocity.com | ||
sudo tedge config set c8y.url $C8Y_URL | ||
``` | ||
|
||
</UserContext> | ||
|
||
:::info | ||
If you are unsure which parameters required by the command, simply run the command and it will tell you which parameters are missing. | ||
|
||
|
@@ -54,13 +71,13 @@ and the command will prompt you for this user's password. | |
These credentials are used only for this upload and will in no case be stored on the device. | ||
::: | ||
|
||
<UserContext> | ||
|
||
```sh | ||
sudo tedge cert upload c8y --user "${C8Y_USER}" | ||
sudo tedge cert upload c8y --user "$C8Y_USER" | ||
``` | ||
|
||
```sh title="Example" | ||
sudo tedge cert upload c8y --user "[email protected]" | ||
``` | ||
</UserContext> | ||
|
||
## Creating an MQTT bridge between the device and the cloud | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.