diff --git a/docs/doxygen/include/size_table.md b/docs/doxygen/include/size_table.md index cb33d24c8..10de57852 100644 --- a/docs/doxygen/include/size_table.md +++ b/docs/doxygen/include/size_table.md @@ -10,7 +10,7 @@ core_mqtt.c
4.1K
-
3.4K
+
3.5K
core_mqtt_state.c @@ -25,6 +25,6 @@ Total estimates
8.6K
-
6.9K
+
7.0K
diff --git a/source/core_mqtt.c b/source/core_mqtt.c index 9a66ec1b3..3cdafafd7 100644 --- a/source/core_mqtt.c +++ b/source/core_mqtt.c @@ -1763,6 +1763,11 @@ static MQTTStatus_t receiveSingleIteration( MQTTContext_t * pContext, ( void ) memmove( pContext->networkBuffer.pBuffer, &( pContext->networkBuffer.pBuffer[ totalMQTTPacketLength ] ), pContext->index ); + + if( status == MQTTSuccess ) + { + pContext->lastPacketRxTime = pContext->getTime(); + } } if( status == MQTTNoDataAvailable )