Skip to content

Commit a07004e

Browse files
committed
Update coreMQTT submodule to latest version of coreMQTT v5 branch
1 parent fbcd032 commit a07004e

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Plain_Text/DemoTasks/PlaintextMQTTExample.c

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
#include "FreeRTOS.h"
5353
#include "task.h"
5454

55+
#include "FreeRTOS_IP.h"
56+
5557
/* Demo Specific configs. */
5658
#include "demo_config.h"
5759
//#include "core_mqtt_config.h"
@@ -268,6 +270,8 @@
268270

269271
/*-----------------------------------------------------------*/
270272

273+
UBaseType_t uxRand(void);
274+
271275
/**
272276
* @brief Each compilation unit that consumes the NetworkContext must define it.
273277
* It should contain a single pointer to the type of your desired transport.
@@ -1363,19 +1367,18 @@ static bool prvEventCallback( MQTTContext_t * pxMQTTContext,
13631367
{
13641368
/* The MQTT context is not used in this function. */
13651369
( void ) pxMQTTContext;
1366-
MQTTStatus_t xResult;
1367-
if((pxPacketInfo->type & 0xF0U) == MQTT_PACKET_TYPE_PUBLISH)
1368-
{
1370+
if((pxPacketInfo->type & 0xF0U) == MQTT_PACKET_TYPE_PUBLISH)
1371+
{
13691372

1370-
prvMQTTProcessIncomingPublish(pxDeserializedInfo->pPublishInfo, pReasonCode, pSendPropsBuffer, pGetPropsBuffer );
1373+
prvMQTTProcessIncomingPublish(pxDeserializedInfo->pPublishInfo, pReasonCode, pSendPropsBuffer, pGetPropsBuffer );
13711374

1372-
}
1373-
else
1374-
{
1375-
prvMQTTProcessResponse(pxPacketInfo, pReasonCode, pSendPropsBuffer, pGetPropsBuffer, pxDeserializedInfo->packetIdentifier);
1375+
}
1376+
else
1377+
{
1378+
prvMQTTProcessResponse(pxPacketInfo, pReasonCode, pSendPropsBuffer, pGetPropsBuffer, pxDeserializedInfo->packetIdentifier);
13761379

1377-
}
1378-
return true;
1380+
}
1381+
return true;
13791382
}
13801383

13811384
/*-----------------------------------------------------------*/
Submodule coreMQTT updated 223 files

0 commit comments

Comments
 (0)