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: samples/mqtt/mqtt5_aws_websocket/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
68
68
69
69
## How to build
70
70
71
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/mqtt/mqtt5_aws_websocket/build` folder.
71
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/mqtt/mqtt5_aws_websocket/build` folder.
72
72
```sh
73
73
cd samples/mqtt/mqtt5_aws_websocket/
74
74
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To run this sample from the `samples/mqtt/mqtt5_aws_websocket` folder, use the following command:
81
+
To run this sample, navigate to the build directory where the executable was created:
82
82
83
83
```sh
84
+
# From samples/mqtt/mqtt5_aws_websocket/, go to the build directory
84
85
cd build
85
86
./mqtt5_aws_websocket \
86
87
--endpoint <AWS IoT endpoint> \
@@ -112,4 +113,4 @@ optional arguments:
112
113
The sample will not run without the required arguments and will notify you of missing arguments.
113
114
114
115
## Additional Information
115
-
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
116
+
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
Copy file name to clipboardExpand all lines: samples/mqtt/mqtt5_custom_auth_signed/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
70
70
71
71
## How to build
72
72
73
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/mqtt/mqtt5_custom_auth_signed/build` folder.
73
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/mqtt/mqtt5_custom_auth_signed/build` folder.
74
74
```sh
75
75
cd samples/mqtt/mqtt5_custom_auth_signed/
76
76
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To run this sample from the `samples/mqtt/mqtt5_custom_auth_signed` folder, use the following command:
83
+
To run this sample, navigate to the build directory where the executable was created:
84
84
85
85
```sh
86
+
# From samples/mqtt/mqtt5_custom_auth_signed/, go to the build directory
86
87
cd build
87
88
# For a signed custom authorizer
88
89
./mqtt5_custom_auth_signed \
@@ -122,4 +123,4 @@ optional arguments:
122
123
The sample will not run without the required arguments and will notify you of missing arguments.
123
124
124
125
## Additional Information
125
-
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
126
+
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
Copy file name to clipboardExpand all lines: samples/mqtt/mqtt5_custom_auth_unsigned/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
70
70
71
71
## How to build
72
72
73
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/mqtt/mqtt5_custom_auth_unsigned/build` folder.
73
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/mqtt/mqtt5_custom_auth_unsigned/build` folder.
74
74
```sh
75
75
cd samples/mqtt/mqtt5_custom_auth_unsigned/
76
76
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To run this sample from the `samples/mqtt/mqtt5_custom_auth_unsigned` folder, use the following command:
83
+
To run this sample, navigate to the build directory where the executable was created:
84
84
85
85
```sh
86
+
# From samples/mqtt/mqtt5_custom_auth_unsigned/, go to the build directory
86
87
cd build
87
88
./mqtt5_custom_auth_unsigned \
88
89
--endpoint <AWS IoT endpoint> \
@@ -116,4 +117,4 @@ optional arguments:
116
117
The sample will not run without the required arguments and will notify you of missing arguments.
117
118
118
119
## Additional Information
119
-
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
120
+
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
Copy file name to clipboardExpand all lines: samples/mqtt/mqtt5_pkcs11/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
71
71
72
72
## How to build
73
73
74
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/mqtt/mqtt5_pkcs11/build` folder.
74
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/mqtt/mqtt5_pkcs11/build` folder.
75
75
```sh
76
76
cd samples/mqtt/mqtt5_pkcs11/
77
77
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To run this sample from the `samples/mqtt/mqtt5_pkcs11` folder, use the following command:
84
+
To run this sample, navigate to the build directory where the executable was created:
85
85
86
86
```sh
87
+
# From samples/mqtt/mqtt5_pkcs11/, go to the build directory
87
88
cd build
88
89
./mqtt5_pkcs11 \
89
90
--endpoint <AWS IoT endpoint> \
@@ -180,4 +181,4 @@ The steps to use [SoftHSM2](https://www.opendnssec.org/softhsm/) as the PKCS#11
180
181
```
181
182
182
183
## Additional Information
183
-
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
184
+
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
Copy file name to clipboardExpand all lines: samples/mqtt/mqtt5_x509/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
69
69
70
70
## How to build
71
71
72
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/mqtt/mqtt5_x509/build` folder.
72
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/mqtt/mqtt5_x509/build` folder.
73
73
```sh
74
74
cd samples/mqtt/mqtt5_x509/
75
75
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To run this sample from the `samples/mqtt/mqtt5_x509` folder, use the following command:
82
+
To run this sample, navigate to the build directory where the executable was created:
83
83
84
84
```sh
85
+
# From samples/mqtt/mqtt5_x509/, go to the build directory
85
86
cd build
86
87
./mqtt5_x509 --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key>
87
88
```
@@ -109,4 +110,4 @@ optional arguments:
109
110
The sample will not run without the required arguments and will notify you of missing arguments.
110
111
111
112
## Additional Information
112
-
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
113
+
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../../documents/MQTT5_Userguide.md#client-operations), [lifecycle events](../../../documents/MQTT5_Userguide.md#client-lifecycle-management), [connection methods](../../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
Copy file name to clipboardExpand all lines: samples/others/device_defender/mqtt5_basic_report/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ This sample expects and requires the following custom metrics:
65
65
66
66
## How to build
67
67
68
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/others/device_defender/mqtt5_basic_report/build` folder.
68
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/others/device_defender/mqtt5_basic_report/build` folder.
69
69
```sh
70
70
cd samples/others/device_defender/mqtt5_basic_report/
71
71
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/others/secure_tunneling/secure_tunnel/build` folder.
9
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/others/secure_tunneling/secure_tunnel/build` folder.
10
10
```sh
11
11
cd samples/others/secure_tunneling/secure_tunnel/
12
12
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
@@ -20,9 +20,10 @@ Create a new secure tunnel in the AWS IoT console (https://console.aws.amazon.co
20
20
21
21
### Destination Mode
22
22
23
-
To run the sample with a destination access token in destination mode (default) from the `samples/others/secure_tunneling/secure_tunnel` folder, use the following command:
23
+
To run the sample with a destination access token in destination mode (default), navigate to the build directory where the executable was created:
24
24
25
25
```sh
26
+
# From samples/others/secure_tunneling/secure_tunnel/, go to the build directory
26
27
cd build
27
28
./secure-tunnel --signing_region <signing_region> --access_token_file <path to destination access token>
28
29
```
@@ -34,6 +35,7 @@ The sample will create a Secure Tunnel connection and remain connected in `DESTI
34
35
While the focus of the Secure Tunnel Client for the IoT Device SDK is to connect with Secure Tunnels in `DESTINATION MODE` we also support connecting in `SOURCE MODE`. The token file should be the Source Token in this instance and you must add the `--local_proxy_mode_source` flag:
35
36
36
37
```sh
38
+
# From samples/others/secure_tunneling/secure_tunnel/, go to the build directory
37
39
cd build
38
40
./secure-tunnel --signing_region <signing_region> --access_token_file <path to source access token> --local_proxy_mode_source
Copy file name to clipboardExpand all lines: samples/others/secure_tunneling/tunnel_notification/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Note that in a real application, you may want to avoid the use of wildcards in y
59
59
60
60
## How to build
61
61
62
-
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/others/secure_tunneling/tunnel_notification/build` folder.
62
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/others/secure_tunneling/tunnel_notification/build` folder.
63
63
```sh
64
64
cd samples/others/secure_tunneling/tunnel_notification/
65
65
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
Copy file name to clipboardExpand all lines: samples/service_clients/commands/commands-sandbox/README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
[**Return to main sample list**](../../README.md)
4
4
5
+
## Introduction
5
6
This is a semi-interactive sample that allows you to use the AWS IoT [Commands](https://docs.aws.amazon.com/iot/latest/developerguide/iot-remote-command.html)
6
7
service to receive and process remote instructions.
7
8
@@ -57,7 +58,7 @@ Miscellaneous
57
58
* close-stream <stream-id> - close a specified stream; <stream-id> is internal ID that can be found with 'list-streams'
58
59
* quit - quit the sample application
59
60
60
-
###Prerequisites
61
+
## Prerequisites
61
62
Your IoT Core Thing's [Policy](https://docs.aws.amazon.com/iot/latest/developerguide/iot-policies.html) must provide privileges for this sample to connect, subscribe, publish, and receive
62
63
in order to perform its data plane operations. Below is a sample policy that can be used on your IoT Core Thing that will
63
64
allow this sample to run as intended.
@@ -141,9 +142,10 @@ Replace with the following with the data from your AWS account:
141
142
142
143
</details>
143
144
144
-
## Building and Running the Sample
145
+
## Walkthrough
145
146
146
-
### Install the SDK
147
+
### Run the sample
148
+
#### Install the SDK
147
149
Before building and running the sample, you must first build and install the SDK:
To build the sample, change directory into the samples folder and run the cmake commands. The sample executable will be built under`samples/service_clients/commands/commands-sandbox/build` folder.
159
+
To build the sample, change directory into the sample's folder and run the cmake commands. The sample executable will be built into the`samples/service_clients/commands/commands-sandbox/build` folder.
158
160
```sh
159
161
cd samples/service_clients/commands/commands-sandbox/
To run this sample from the `samples/service_clients/commands/commands-sandbox` folder, use the following command:
168
+
To run this sample, navigate to the build directory where the executable was created:
167
169
168
170
```sh
171
+
# From samples/service_clients/commands/commands-sandbox/, go to the build directory
169
172
cd build
170
173
./commands-sandbox \
171
174
--endpoint <endpoint> \
@@ -527,3 +530,13 @@ distinguishes only JSON and CBOR, all other payload format will be routed to th
527
530
separate thread(s).
528
531
3. If your application is expected to receive a lot of AWS IoT commands, monitor the number of them enqueued for processing.
529
532
Consider introducing priorities based on AWS IoT command timeouts or some internal value.
533
+
534
+
## ⚠️ Usage disclaimer
535
+
536
+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
537
+
538
+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
539
+
540
+
- Be aware of the resources that these examples create or delete.
541
+
- Be aware of the costs that might be charged to your account as a result.
0 commit comments