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
+6-4Lines changed: 6 additions & 4 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, and run the cmake commands
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
-
.mqtt5_aws_websocket \
84
+
# From samples/mqtt/mqtt5_aws_websocket/, go to the build directory
85
+
cd build
86
+
./mqtt5_aws_websocket \
85
87
--endpoint <AWS IoT endpoint> \
86
88
--signing_region <Signing region for websocket connection>
87
89
```
@@ -111,4 +113,4 @@ optional arguments:
111
113
The sample will not run without the required arguments and will notify you of missing arguments.
112
114
113
115
## Additional Information
114
-
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
+5-4Lines changed: 5 additions & 4 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, and run the cmake commands
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
87
+
cd build
86
88
# For a signed custom authorizer
87
89
./mqtt5_custom_auth_signed \
88
90
--endpoint <AWS IoT endpoint> \
@@ -92,7 +94,6 @@ To Run this sample from the `samples\mqtt\mqtt5_custom_auth_signed` folder, use
92
94
--auth_signature <Custom authorizer signature> \
93
95
--auth_username <The name to send when connecting through the custom authorizer> \
94
96
--auth_password <The password to send when connecting through a custom authorizer>
95
-
96
97
```
97
98
98
99
If you would like to see what optional arguments are available, use the `--help` argument:
@@ -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
+5-3Lines changed: 5 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, and run the cmake commands
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
87
+
cd build
86
88
./mqtt5_custom_auth_unsigned \
87
89
--endpoint <AWS IoT endpoint> \
88
90
--authorizer_name <custom authorizer name> \
@@ -115,4 +117,4 @@ optional arguments:
115
117
The sample will not run without the required arguments and will notify you of missing arguments.
116
118
117
119
## Additional Information
118
-
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
+5-3Lines changed: 5 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, and run the cmake commands
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
88
+
cd build
87
89
./mqtt5_pkcs11 \
88
90
--endpoint <AWS IoT endpoint> \
89
91
--cert <path to certificate file> \
@@ -179,4 +181,4 @@ The steps to use [SoftHSM2](https://www.opendnssec.org/softhsm/) as the PKCS#11
179
181
```
180
182
181
183
## Additional Information
182
-
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
+7-5Lines changed: 7 additions & 5 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, and run the cmake commands
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 using a direct MQTT connection with a key and certificate, use the following command:
82
+
To run this sample, navigate to the build directory where the executable was created:
83
83
84
-
```sh
85
-
./mqtt5_x509 --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key>
84
+
```sh
85
+
# From samples/mqtt/mqtt5_x509/, go to the build directory
86
+
cd build
87
+
./mqtt5_x509 --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key>
86
88
```
87
89
88
90
If you would like to see what optional arguments are available, use the `--help` argument:
@@ -108,4 +110,4 @@ optional arguments:
108
110
The sample will not run without the required arguments and will notify you of missing arguments.
109
111
110
112
## Additional Information
111
-
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
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Device Defender
2
2
3
-
[**Return to main sample list**](../../README.md)
3
+
[**Return to main sample list**](../../../README.md)
4
4
5
5
This sample uses the AWS IoT [Device Defender](https://aws.amazon.com/iot-device-defender/) Service to send on device metrics to AWS. Device Defender is an AWS IoT Core service that allows you to monitor the health of your IoT device through sending periodic updates containing device data to AWS IoT Core.
6
6
@@ -63,9 +63,23 @@ This sample expects and requires the following custom metrics:
63
63
* type `ip-list`
64
64
* info: sends a predefined list of documentation IP addresses.
65
65
66
-
To run the Device Defender sample, use the following command:
66
+
## How to build
67
67
68
-
```sh
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
+
```sh
70
+
cd samples/others/device_defender/mqtt5_basic_report/
71
+
# 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/others/secure_tunneling/secure_tunnel/README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,30 @@
1
1
# Secure Tunnel
2
2
3
-
[**Return to main sample list**](../../README.md)
3
+
[**Return to main sample list**](../../../README.md)
4
4
5
5
This sample uses AWS IoT [Secure Tunneling](https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling.html) Service to connect a destination or a source Secure Tunnel Client to an AWS Secure Tunnel endpoint using access tokens using the [V3WebSocketProtocol](https://github.com/aws-samples/aws-iot-securetunneling-localproxy/blob/main/V3WebSocketProtocolGuide.md). For more information, see the [Secure Tunnel Userguide](../../../documents/Secure_Tunnel_Userguide.md)
6
6
7
+
## How to build
8
+
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
+
```sh
11
+
cd samples/others/secure_tunneling/secure_tunnel/
12
+
# If you followed the SDK build instruction, you would use the path to `sdk-workspace` folder for `CMAKE_PREFIX_PATH` here
Create a new secure tunnel in the AWS IoT console (https://console.aws.amazon.com/iot/) (AWS IoT/Manage/Tunnels/Create tunnel) and retrieve the destination and source access tokens. (https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling-tutorial-open-tunnel.html). Once you have these tokens, you are ready to open a secure tunnel.
10
20
11
21
### Destination Mode
12
22
13
-
To run the sample with a destination access token in destination mode (default), you can 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:
14
24
15
-
```sh
25
+
```sh
26
+
# From samples/others/secure_tunneling/secure_tunnel/, go to the build directory
27
+
cd build
16
28
./secure-tunnel --signing_region <signing_region> --access_token_file <path to destination access token>
17
29
```
18
30
@@ -22,7 +34,9 @@ The sample will create a Secure Tunnel connection and remain connected in `DESTI
22
34
23
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:
24
36
25
-
```sh
37
+
```sh
38
+
# From samples/others/secure_tunneling/secure_tunnel/, go to the build directory
39
+
cd build
26
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
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Secure Tunnel Notification
2
2
3
-
[**Return to main sample list**](../../README.md)
3
+
[**Return to main sample list**](../../../README.md)
4
4
5
5
This sample uses an MQTT Client and the AWS IoT [Secure Tunneling](https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling.html) Service to receive a tunnel notification and then connects to the Secure Tunnel using a Secure Tunnel Client.
6
6
@@ -57,9 +57,23 @@ Note that in a real application, you may want to avoid the use of wildcards in y
57
57
58
58
</details>
59
59
60
+
## How to build
61
+
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
+
```sh
64
+
cd samples/others/secure_tunneling/tunnel_notification/
65
+
# 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, navigate to the build directory where the executable was created:
73
+
74
+
```sh
75
+
# From samples/others/secure_tunneling/tunnel_notification/, go to the build directory
76
+
cd build
63
77
./tunnel-notification --endpoint <endpoint> --cert <path to the certificate> --key <path to the private key> --thing_name <thing name>
64
78
```
65
79
Once the MQTT Client is connected, create a new secure tunnel in the AWS IoT console (https://console.aws.amazon.com/iot/) (AWS IoT/Manage/Tunnels/Create tunnel) for the Thing.
0 commit comments