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
*[Configuring the S3 demos](#configuring-the-s3-demos)
45
46
*[Setup for AWS IoT Jobs demo](#setup-for-aws-iot-jobs-demo)
46
47
*[Prerequisites for the AWS Over-The-Air Update (OTA) demos](#prerequisites-for-the-aws-over-the-air-update-ota-demos)
@@ -322,20 +323,20 @@ Dependency | Version | Usage
322
323
You need to setup an AWS account and access the AWS IoT console for running the AWS IoT Device Shadow library, AWS IoT Device Defender library, AWS IoT Jobs library,
323
324
AWS IoT OTA library and coreHTTP S3 download demos.
324
325
Also, the AWS account can be used for running the MQTT mutual auth demo can be run against AWS IoT broker.
325
-
Also, running the AWS IoT Device Defender, AWS IoT Jobs and AWS IoT Device Shadow library demos require the setup of a Thing Name resource for the device running the
326
+
Also, running the AWS IoT Device Defender, AWS IoT Jobs and AWS IoT Device Shadow library demos require the setup of a Thing resource for the device running the
326
327
demo.
327
328
Follow the links to:
328
-
[Setup an AWS account](https://portal.aws.amazon.com/billing/signup#/start).
329
-
[Sign-in to the AWS IoT Console](https://aws.amazon.com/console/) after setting up the AWS account.
330
-
[Create a Thing resource](https://docs.aws.amazon.com/iot/latest/developerguide/iot-moisture-create-thing.html)
329
+
-[Setup an AWS account](https://portal.aws.amazon.com/billing/signup#/start).
330
+
-[Sign-in to the AWS IoT Console](https://aws.amazon.com/console/) after setting up the AWS account.
331
+
-[Create a Thing resource](https://docs.aws.amazon.com/iot/latest/developerguide/iot-moisture-create-thing.html).
331
332
332
333
333
-
#### Configuring TLS mutual authentication in demos
334
+
#### Configuring mutual authentication demos of MQTT and HTTP
334
335
335
336
You can pass the following configuration settings as command line options in order to run the mutual auth demos:
In order to set these configurations manually, edit `demo_config.h` in `demos/mqtt/mqtt_demo_mutual_auth/` and `demos/http/http_demo_mutual_auth/` to `#define` the following:
@@ -345,6 +346,24 @@ In order to set these configurations manually, edit `demo_config.h` in `demos/mq
345
346
* Set `CLIENT_CERT_PATH` to the path of the client certificate downloaded when setting up the device certificate in [AWS IoT Account Setup](#aws-iot-account-setup).
346
347
* Set `CLIENT_PRIVATE_KEY_PATH` to the path of the private key downloaded when setting up the device certificate in [AWS IoT Account Setup](#aws-iot-account-setup).
An Amazon Root CA certificate can be downloaded from [here](https://www.amazontrust.com/repository/).
358
+
359
+
In order to set these configurations manually, edit `demo_config.h` in `demos/mqtt/mqtt_demo_mutual_auth/` and `demos/http/http_demo_mutual_auth/` to `#define` the following:
360
+
361
+
* Set `AWS_IOT_ENDPOINT` to your custom endpoint. This is found on the *Settings* page of the AWS IoT Console and has a format of `ABCDEFG1234567.iot.us-east-2.amazonaws.com`.
362
+
* Set `ROOT_CA_CERT_PATH` to the path of the root CA certificate downloaded when setting up the device certificate in [AWS IoT Account Setup](#aws-iot-account-setup).
363
+
* Set `CLIENT_CERT_PATH` to the path of the client certificate downloaded when setting up the device certificate in [AWS IoT Account Setup](#aws-iot-account-setup).
364
+
* Set `CLIENT_PRIVATE_KEY_PATH` to the path of the private key downloaded when setting up the device certificate in [AWS IoT Account Setup](#aws-iot-account-setup).
365
+
* Set `THING_NAME` to the name of the Thing created in [AWS IoT Account Setup](#aws-iot-account-setup).
366
+
348
367
#### Configuring the S3 demos
349
368
350
369
You can pass the following configuration settings as command line options in order to run the S3 demos:
@@ -382,7 +401,7 @@ The following creates a job that specifies a Linux Kernel link for downloading.
0 commit comments