From 19fd9673b46c8ae9973cb033c832316dfa24761c Mon Sep 17 00:00:00 2001 From: Dakshit Babbar Date: Wed, 11 Sep 2024 09:54:33 +0530 Subject: [PATCH] Rectify Unit Tests Errors --- source/core_mqtt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/core_mqtt.c b/source/core_mqtt.c index b3342d21..efada68d 100644 --- a/source/core_mqtt.c +++ b/source/core_mqtt.c @@ -438,7 +438,7 @@ static MQTTStatus_t receiveConnack( MQTTContext_t * pContext, * @return #MQTTSendFailed if transport send during resend failed; * #MQTTSuccess otherwise. */ -static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext) +static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext); /** * @brief Send the publish packet without copying the topic string and payload in @@ -2879,6 +2879,11 @@ MQTTStatus_t MQTT_Connect( MQTTContext_t * pContext, LogInfo( ( "MQTT Connection is either already established or a disconnect is pending, return status = %s.", MQTT_Status_strerror( status ) ) ); } + else if ( status == MQTTBadParameter ) + { + LogError( ( "MQTT connection failed with status = %s.", + MQTT_Status_strerror( status ) ) ); + } else { LogError( ( "MQTT connection failed with status = %s.",