]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/task_pool/iot_config.h
Rename the FreeRTOS_Plus_IoT_SDK directory to FreeRTOS_IoT_Libraries.
[freertos] / FreeRTOS-Plus / Demo / FreeRTOS_IoT_Libraries / task_pool / iot_config.h
diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/task_pool/iot_config.h b/FreeRTOS-Plus/Demo/FreeRTOS_IoT_Libraries/task_pool/iot_config.h
new file mode 100644 (file)
index 0000000..3038f0b
--- /dev/null
@@ -0,0 +1,59 @@
+/*\r
+ * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ *\r
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
+ * this software and associated documentation files (the "Software"), to deal in\r
+ * the Software without restriction, including without limitation the rights to\r
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
+ * the Software, and to permit persons to whom the Software is furnished to do so,\r
+ * subject to the following conditions:\r
+ *\r
+ * The above copyright notice and this permission notice shall be included in all\r
+ * copies or substantial portions of the Software.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+ */\r
+\r
+/* This file contains configuration settings for the demos. */\r
+\r
+#ifndef IOT_CONFIG_H_\r
+#define IOT_CONFIG_H_\r
+\r
+/* How long the MQTT library will wait for PINGRESPs or PUBACKs. */\r
+#define IOT_MQTT_RESPONSE_WAIT_MS            ( 10000 )\r
+\r
+/* MQTT demo configuration. */\r
+#define IOT_DEMO_MQTT_PUBLISH_BURST_COUNT    ( 10 )\r
+#define IOT_DEMO_MQTT_PUBLISH_BURST_SIZE     ( 2 )\r
+\r
+/* Shadow demo configuration. The demo publishes periodic Shadow updates and responds\r
+ * to changing Shadows. */\r
+#define AWS_IOT_DEMO_SHADOW_UPDATE_COUNT        ( 20 )   /* Number of updates to publish. */\r
+#define AWS_IOT_DEMO_SHADOW_UPDATE_PERIOD_MS    ( 3000 ) /* Period of Shadow updates. */\r
+\r
+/* Library logging configuration. IOT_LOG_LEVEL_GLOBAL provides a global log\r
+ * level for all libraries; the library-specific settings override the global\r
+ * setting. If both the library-specific and global settings are undefined,\r
+ * no logs will be printed. */\r
+#define IOT_LOG_LEVEL_GLOBAL                    IOT_LOG_INFO\r
+#define IOT_LOG_LEVEL_DEMO                      IOT_LOG_INFO\r
+#define IOT_LOG_LEVEL_PLATFORM                  IOT_LOG_NONE\r
+#define IOT_LOG_LEVEL_NETWORK                   IOT_LOG_INFO\r
+#define IOT_LOG_LEVEL_TASKPOOL                  IOT_LOG_NONE\r
+#define IOT_LOG_LEVEL_MQTT                      IOT_LOG_INFO\r
+#define AWS_IOT_LOG_LEVEL_SHADOW                IOT_LOG_INFO\r
+#define AWS_IOT_LOG_LEVEL_DEFENDER              IOT_LOG_INFO\r
+\r
+/* Platform thread stack size and priority. */\r
+#define IOT_THREAD_DEFAULT_STACK_SIZE    2048\r
+#define IOT_THREAD_DEFAULT_PRIORITY      5\r
+\r
+/* Include the common configuration file for FreeRTOS. */\r
+#include "iot_config_common.h"\r
+\r
+#endif /* ifndef IOT_CONFIG_H_ */\r