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>
This commit is contained in:
Tony Josi 2024-04-22 23:13:44 +05:30 committed by GitHub
parent 140ce29320
commit 24ad46b7f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,9 @@
#include "freertos_command_pool.h" #include "freertos_command_pool.h"
#include "freertos_agent_message.h" #include "freertos_agent_message.h"
/* Demo config include. */
#include "demo_config.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#define QUEUE_NOT_INITIALIZED ( 0U ) #define QUEUE_NOT_INITIALIZED ( 0U )

View file

@ -293,4 +293,10 @@ extern void vLoggingPrintf( const char * pcFormatString,
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION #define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
#endif #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 */ #endif /* DEMO_CONFIG_H */