Update demos to use version macro from coreMQTT (#460)

Update demos to use the MQTT_LIBRARY_VERSION macro for the coreMQTT version they report in their metrics
This commit is contained in:
Archit Aggarwal
2020-12-10 12:05:02 -08:00
committed by GitHub
parent c0d4c7c67c
commit d93a3d63a0
7 changed files with 31 additions and 25 deletions

View File

@ -221,7 +221,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
* @brief The name of the MQTT library used and its version, following an "@" * @brief The name of the MQTT library used and its version, following an "@"
* symbol. * symbol.
*/ */
#define democonfigMQTT_LIB "core-mqtt@1.0.1" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
/** /**
* @brief Set the stack size of the main demo task. * @brief Set the stack size of the main demo task.

View File

@ -220,7 +220,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
* @brief The name of the MQTT library used and its version, following an "@" * @brief The name of the MQTT library used and its version, following an "@"
* symbol. * symbol.
*/ */
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
/** /**
* @brief Set the stack size of the main demo task. * @brief Set the stack size of the main demo task.

View File

@ -213,7 +213,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
* @brief The name of the MQTT library used and its version, following an "@" * @brief The name of the MQTT library used and its version, following an "@"
* symbol. * symbol.
*/ */
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
/** /**
* @brief Set the stack size of the main demo task. * @brief Set the stack size of the main demo task.

View File

@ -1,5 +1,5 @@
/* /*
* FreeRTOS Kernel V10.3.0 * FreeRTOS V202011.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@ -19,8 +19,8 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
* http://www.FreeRTOS.org * https://www.FreeRTOS.org
* http://aws.amazon.com/freertos * https://github.com/FreeRTOS
* *
*/ */
@ -245,7 +245,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
* @brief The name of the MQTT library used and its version, following an "@" * @brief The name of the MQTT library used and its version, following an "@"
* symbol. * symbol.
*/ */
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
/** /**
* @brief Whether to use mutual authentication. If this macro is not set to 1 * @brief Whether to use mutual authentication. If this macro is not set to 1
@ -363,7 +364,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
#endif #endif
#ifndef democonfigMQTT_LIB #ifndef democonfigMQTT_LIB
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
#endif #endif
/** /**

View File

@ -236,7 +236,7 @@
#endif #endif
#ifndef democonfigMQTT_LIB #ifndef democonfigMQTT_LIB
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
#endif #endif
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* FreeRTOS Kernel V10.3.0 * FreeRTOS V202011.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@ -19,8 +19,8 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
* http://www.FreeRTOS.org * https://www.FreeRTOS.org
* http://aws.amazon.com/freertos * https://github.com/FreeRTOS
* *
*/ */
@ -244,7 +244,8 @@ extern void vLoggingPrintf( const char * pcFormatString,
* @brief The name of the MQTT library used and its version, following an "@" * @brief The name of the MQTT library used and its version, following an "@"
* symbol. * symbol.
*/ */
#define democonfigMQTT_LIB "core-mqtt@1.0.0" #include "core_mqtt.h" /* Include coreMQTT header for MQTT_LIBRARY_VERSION macro. */
#define democonfigMQTT_LIB "core-mqtt@"MQTT_LIBRARY_VERSION
/** /**
* @brief Set the stack size of the main demo task. * @brief Set the stack size of the main demo task.