2 * FreeRTOS Kernel V10.3.0
\r
3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\r
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
\r
6 * this software and associated documentation files (the "Software"), to deal in
\r
7 * the Software without restriction, including without limitation the rights to
\r
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
\r
9 * the Software, and to permit persons to whom the Software is furnished to do so,
\r
10 * subject to the following conditions:
\r
12 * The above copyright notice and this permission notice shall be included in all
\r
13 * copies or substantial portions of the Software.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
22 * http://www.FreeRTOS.org
\r
23 * http://aws.amazon.com/freertos
\r
25 * 1 tab == 4 spaces!
\r
28 #ifndef DEMO_CONFIG_H
\r
29 #define DEMO_CONFIG_H
\r
32 * This configuration file determines how the HTTPS demo is run.
\r
34 * http_plain_text demo: Security is turned off. Preconfigured to a public HTTP
\r
35 * host on unencrypted port so no authentication configuration is required.
\r
37 * https_basic_tls_server_auth demo: TLS security is enabled, allowing host
\r
38 * side authentication. Preconfigured to a public HTTPS host with certificate
\r
39 * provided by the host so no authentication configuration is required.
\r
41 * https_tls_mutual_auth demo: Mutual authentication is enabled. Preconfigured to
\r
42 * AWS IoT broker, will require certificate setup for successful connection.
\r
46 * @brief Enable/Disable TLS in demos.
\r
48 * For more information regarding TLS protocol:
\r
49 * https://www.freertos.org/https/tls.html
\r
51 #define democonfigENABLE_TLS 1
\r
54 * @brief Enable/Disable mutual authentication in demos. If enabled, require
\r
55 * democonfigENABLE_TLS to be set to 1.
\r
57 #define democonfigENABLE_MUTUAL_AUTH 0
\r
60 * @brief Select a connection profile.
\r
62 * If set to 1, the demo will connect to AWS IoT with credential setup in
\r
63 * aws_iot_demo_profile.h file, otherwise the demo is preconfigured to connect to
\r
64 * httpbin.org with credential setup in https_demo_profile.h file. If enabled,
\r
65 * requires democonfigENABLE_MUTUAL_AUTH to be set to 1 since AWS IoT requires
\r
66 * mutually authenticated connection.
\r
68 #define democonfigPROFILE_USE_AWS_IOT 0
\r
71 * @brief Set the stack size of the main demo task.
\r
73 * In the Windows port, this stack only holds a structure. The actual
\r
74 * stack is created by an operating system thread.
\r
76 #define democonfigDEMO_STACKSIZE configMINIMAL_STACK_SIZE
\r
78 #endif /* DEMO_CONFIG_H */
\r