You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/iotdata.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
2
title: "IoT Data"
3
-
linkTitle: "IoT Data"
4
3
tags: ["Ultimate"]
5
4
description: Get started with IoT Data on LocalStack
6
5
---
@@ -11,7 +10,7 @@ IoT Data provides secure, bi-directional communication between Internet-connecte
11
10
It allows you to connect your devices to the cloud and interact with them using the AWS Management Console, AWS CLI, or AWS SDKs.
12
11
13
12
LocalStack allows you to use the IoT Data APIs to update, get, and delete the shadow of a thing in your local environment.
14
-
The supported APIs are available on our [API Coverage Page]({{< ref "coverage_iot-data" >}}), which provides information on the extent of IoT Data integration with LocalStack.
13
+
The supported APIs are available on our [API Coverage Page](), which provides information on the extent of IoT Data integration with LocalStack.
15
14
16
15
## Getting started
17
16
@@ -25,12 +24,12 @@ We will demonstrate how to create a thing, update its shadow, get its shadow, an
25
24
You can update the shadow of a thing using the [`UpdateThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_UpdateThingShadow.html) API.
26
25
Run the following command to update the shadow of a thing named `MyRPi`:
The `output.txt` file contains the following output:
36
35
@@ -58,11 +57,11 @@ The `output.txt` file contains the following output:
58
57
You can get the shadow of a thing using the [`GetThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_GetThingShadow.html) API.
59
58
Run the following command to get the shadow:
60
59
61
-
{{< command >}}
62
-
$ awslocal iot-data get-thing-shadow \
60
+
```bash
61
+
awslocal iot-data get-thing-shadow \
63
62
--thing-name "MyRPi" \
64
63
output.txt
65
-
{{< /command >}}
64
+
```
66
65
67
66
The `output.txt` will contain the same output as the previous command.
68
67
@@ -71,11 +70,11 @@ The `output.txt` will contain the same output as the previous command.
71
70
You can delete the shadow of a thing using the [`DeleteThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_DeleteThingShadow.html) API.
72
71
Run the following command to delete the shadow:
73
72
74
-
{{< command >}}
75
-
$ awslocal iot-data delete-thing-shadow \
73
+
```bash
74
+
awslocal iot-data delete-thing-shadow \
76
75
--thing-name "MyRPi" \
77
76
output.txt
78
-
{{< /command >}}
77
+
```
79
78
80
79
The `output.txt` will contain the following output:
0 commit comments