]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/tools/aws_config_offline/js/aws_iot_demo_profile_template.js
Update version number in readiness for V10.3.0 release. Sync SVN with reviewed releas...
[freertos] / FreeRTOS-Labs / Demo / FreeRTOS_IoT_Libraries / tools / aws_config_offline / js / aws_iot_demo_profile_template.js
1 var awsIotProfileTemplate =\r
2 `/*\r
3  * FreeRTOS Kernel V10.3.0\r
4  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
5  *\r
6  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
7  * this software and associated documentation files (the "Software"), to deal in\r
8  * the Software without restriction, including without limitation the rights to\r
9  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
10  * the Software, and to permit persons to whom the Software is furnished to do so,\r
11  * subject to the following conditions:\r
12  *\r
13  * The above copyright notice and this permission notice shall be included in all\r
14  * copies or substantial portions of the Software.\r
15  *\r
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
22  *\r
23  * http://www.FreeRTOS.org\r
24  * http://aws.amazon.com/freertos\r
25  *\r
26  * 1 tab == 4 spaces!\r
27  */\r
28 \r
29 /*\r
30  * IMPORTANT, CONFIGURATION REQUIRED: This is a configuration file containing AWS\r
31  * IoT profile for the demos, will need additional setup:\r
32  * https://www.freertos.org/mqtt/preconfiguredexamplesMA.html\r
33  *\r
34  * Each profile corresponds to a different service. The demos that use the same\r
35  * profile share the same service. It is important to understand the\r
36  * correspondence between the preconfigured profiles and demos, since each\r
37  * service have different connection configuration and credential validation.\r
38  *\r
39  *  - mqtt_demo_profile.h is preconfigured to test.mosquitto.org MQTT broker.\r
40  * The file is used with mqtt_plain_text demo and mqtt_basic_tls_server_auth\r
41  * demo. Feel free to try out other broker with the demos.\r
42  *\r
43  *  - https_demo_profile.h is preconfigured to httpbin.org server. The file is\r
44  * used with http_plain_text demo and https_basic_tls_server_auth demo.\r
45  *\r
46  *  - aws_iot_demo_profile.h (current) contains information to connect to AWS\r
47  * IoT. The file is used with mqtt_tls_mutual_auth demo, https_tls_mutual_auth\r
48  * demo, and other AWS IoT related demo.\r
49  */\r
50 \r
51 #ifndef AWS_IOT_DEMO_PROFILE_H\r
52 #define AWS_IOT_DEMO_PROFILE_H\r
53 \r
54 /**\r
55  * @brief Details of the MQTT broker to connect to.\r
56  *\r
57  * This is the Thing's Rest API Endpoint for AWS IoT.\r
58  *\r
59  * #define awsiotdemoprofileAWS_ENDPOINT           "...insert here..."\r
60  */\r
61 #define awsiotdemoprofileAWS_ENDPOINT      <IOTEndpoint>\r
62 \r
63 /**\r
64  * @brief The port to use for the MQTT demo.\r
65  *\r
66  * Use 8883 if connecting to AWS IoT services.\r
67  */\r
68 #define awsiotdemoprofileAWS_MQTT_PORT     8883\r
69 \r
70 /**\r
71  * @brief The port to use for the HTTPS demo.\r
72  *\r
73  * Use 8443 if connecting to AWS IoT services.\r
74  */\r
75 #define awsiotdemoprofileAWS_HTTPS_PORT    8443\r
76 \r
77 /**\r
78  * @brief The AWS IoT server certificate.\r
79  *\r
80  * This certificate is used to identify the AWS IoT server and is publicly\r
81  * available.\r
82  */\r
83 #define awsiotdemoprofileAWS_CERTIFICATE_PEM                             \\\r
84     "-----BEGIN CERTIFICATE-----\\n"                                      \\\r
85     "MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\\n" \\\r
86     "ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\\n" \\\r
87     "b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\\n" \\\r
88     "MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\\n" \\\r
89     "b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\\n" \\\r
90     "ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\\n" \\\r
91     "9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\\n" \\\r
92     "IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\\n" \\\r
93     "VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\\n" \\\r
94     "93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\\n" \\\r
95     "jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\\n" \\\r
96     "AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\\n" \\\r
97     "A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\\n" \\\r
98     "U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\\n" \\\r
99     "N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\\n" \\\r
100     "o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\\n" \\\r
101     "5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\\n" \\\r
102     "rqXRfboQnoZsG4q5WTP468SQvvG5\\n"                                     \\\r
103     "-----END CERTIFICATE-----\\n"\r
104 \r
105 /**\r
106  * @brief The MQTT client identifier.\r
107  *\r
108  * This is the "Thing Name" in AWS IoT.\r
109  *\r
110  * #define awsiotdemoprofileCLIENT_IDENTIFIER    "...insert here..."\r
111  */\r
112 #define awsiotdemoprofileCLIENT_IDENTIFIER    <IOTThingName>\r
113 \r
114 /**\r
115  * @brief PEM-encoded client certificate\r
116  *\r
117  * Must include the PEM header and footer:\r
118  * "-----BEGIN CERTIFICATE-----\\n"\\\r
119  * "...base64 data...\\n"\\\r
120  * "-----END CERTIFICATE-----\\n"\r
121  *\r
122  * #define awsiotdemoprofileCLIENT_CERTIFICATE_PEM    "...insert here..."\r
123  */\r
124 #define awsiotdemoprofileCLIENT_CERTIFICATE_PEM                          \\\r
125 <ClientCertificatePEM>\r
126 \r
127 /**\r
128  * @brief PEM-encoded client private key.\r
129  *\r
130  * Must include the PEM header and footer:\r
131  * "-----BEGIN RSA PRIVATE KEY-----\\n"\\\r
132  * "...base64 data...\\n"\\\r
133  * "-----END RSA PRIVATE KEY-----\\n"\r
134  *\r
135  * #define awsiotdemoprofileCLIENT_PRIVATE_KEY_PEM    "...insert here..."\r
136  */\r
137 #define awsiotdemoprofileCLIENT_PRIVATE_KEY_PEM                          \\\r
138 <ClientPrivateKeyPEM>\r
139 \r
140 #endif /* AWS_IOT_DEMO_PROFILE_H */\r
141 `\r