From 24ad46b7f84b39baff959436e646519785806249 Mon Sep 17 00:00:00 2001 From: Tony Josi Date: Mon, 22 Apr 2024 23:13:44 +0530 Subject: [PATCH] Fix MQTT multitask demo build (#1214) * Fix MQTT multitask demo build * Fix formatting * Update FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> --------- Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> --- .../Common/coreMQTT_Agent_Interface/freertos_command_pool.c | 3 +++ .../coreMQTT_Windows_Simulator/MQTT_Multitask/demo_config.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c b/FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c index 153a18c4d..ea4a69c0f 100644 --- a/FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c +++ b/FreeRTOS-Plus/Demo/Common/coreMQTT_Agent_Interface/freertos_command_pool.c @@ -41,6 +41,9 @@ #include "freertos_command_pool.h" #include "freertos_agent_message.h" +/* Demo config include. */ +#include "demo_config.h" + /*-----------------------------------------------------------*/ #define QUEUE_NOT_INITIALIZED ( 0U ) diff --git a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Multitask/demo_config.h b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Multitask/demo_config.h index 5debbd328..35bd51f57 100644 --- a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Multitask/demo_config.h +++ b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Multitask/demo_config.h @@ -293,4 +293,10 @@ extern void vLoggingPrintf( const char * pcFormatString, #define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION #endif +/** + * @brief The number of command structures to allocate in the pool + * for the agent. + */ +#define MQTT_COMMAND_CONTEXTS_POOL_SIZE 10 + #endif /* DEMO_CONFIG_H */