2 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy of
\r
5 * this software and associated documentation files (the "Software"), to deal in
\r
6 * the Software without restriction, including without limitation the rights to
\r
7 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
\r
8 * the Software, and to permit persons to whom the Software is furnished to do so,
\r
9 * subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in all
\r
12 * copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
16 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
17 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
18 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
22 /* This file contains configuration settings for the demos. */
\r
24 #ifndef IOT_CONFIG_H_
\r
25 #define IOT_CONFIG_H_
\r
27 /* How long the MQTT library will wait for PINGRESPs or PUBACKs. */
\r
28 #define IOT_MQTT_RESPONSE_WAIT_MS ( 10000 )
\r
30 /* MQTT demo configuration. */
\r
31 #define IOT_DEMO_MQTT_PUBLISH_BURST_COUNT ( 10 )
\r
32 #define IOT_DEMO_MQTT_PUBLISH_BURST_SIZE ( 2 )
\r
34 /* Shadow demo configuration. The demo publishes periodic Shadow updates and responds
\r
35 * to changing Shadows. */
\r
36 #define AWS_IOT_DEMO_SHADOW_UPDATE_COUNT ( 20 ) /* Number of updates to publish. */
\r
37 #define AWS_IOT_DEMO_SHADOW_UPDATE_PERIOD_MS ( 3000 ) /* Period of Shadow updates. */
\r
39 /* Library logging configuration. IOT_LOG_LEVEL_GLOBAL provides a global log
\r
40 * level for all libraries; the library-specific settings override the global
\r
41 * setting. If both the library-specific and global settings are undefined,
\r
42 * no logs will be printed. */
\r
43 #define IOT_LOG_LEVEL_GLOBAL IOT_LOG_INFO
\r
44 #define IOT_LOG_LEVEL_DEMO IOT_LOG_INFO
\r
45 #define IOT_LOG_LEVEL_PLATFORM IOT_LOG_NONE
\r
46 #define IOT_LOG_LEVEL_NETWORK IOT_LOG_INFO
\r
47 #define IOT_LOG_LEVEL_TASKPOOL IOT_LOG_NONE
\r
48 #define IOT_LOG_LEVEL_MQTT IOT_LOG_INFO
\r
49 #define AWS_IOT_LOG_LEVEL_SHADOW IOT_LOG_INFO
\r
50 #define AWS_IOT_LOG_LEVEL_DEFENDER IOT_LOG_INFO
\r
52 /* Platform thread stack size and priority. */
\r
53 #define IOT_THREAD_DEFAULT_STACK_SIZE 2048
\r
54 #define IOT_THREAD_DEFAULT_PRIORITY 5
\r
56 /* Include the common configuration file for FreeRTOS. */
\r
57 #include "iot_config_common.h"
\r
59 #endif /* ifndef IOT_CONFIG_H_ */
\r