Update logConnackResponse to log success response at Info level
@@ -728,9 +728,17 @@ static void logConnackResponse( uint8_t responseCode )
assert( responseCode <= 5 );
+ if( responseCode == 0u )
+ {
+ /* Log at Info level for a success CONNACK response. */
+ LogInfo( ( "%s", pConnackResponses[ 0 ] ) );
+ }
+ else
+ {
/* Log an error based on the CONNACK response code. */
LogError( ( "%s", pConnackResponses[ responseCode ] ) );
}
+}
/*-----------------------------------------------------------*/
