diff options
author | Archit Aggarwal <architag@amazon.com> | 2020-10-09 10:55:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 10:55:12 -0700 |
commit | 00247a763737232e0e5548f5ebe99fde82d6f465 (patch) | |
tree | c1d1158916ae3588fd883929d7414b001bf8fc2a /FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c | |
parent | 1b87287e16692f9e54e94e09844403739ba48e07 (diff) | |
download | freertos-git-00247a763737232e0e5548f5ebe99fde82d6f465.tar.gz |
Remove extraneous call to MQTT_ProcessLoop (#333)
Diffstat (limited to 'FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c')
-rw-r--r-- | FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c index 4295920e3..e6c35da69 100644 --- a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c +++ b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth/DemoTasks/MutualAuthMQTTExample.c @@ -415,16 +415,6 @@ static void prvMQTTDemoTask( void * pvParameters ) * strategy implemented in retryUtils. */ prvMQTTSubscribeWithBackoffRetries( &xMQTTContext ); - /* Process incoming packet from the broker. After sending the subscribe, the - * client may receive a publish before it receives a subscribe ack. Therefore, - * call generic incoming packet processing function. Since this demo is - * subscribing to the topic to which no one is publishing, probability of - * receiving Publish message before subscribe ack is zero; but application - * must be ready to receive any packet. This demo uses the generic packet - * processing function everywhere to highlight this fact. */ - xMQTTStatus = MQTT_ProcessLoop( &xMQTTContext, mqttexamplePROCESS_LOOP_TIMEOUT_MS ); - configASSERT( xMQTTStatus == MQTTSuccess ); - /****************** Publish and Keep Alive Loop. **********************/ /* Publish messages with QoS1, send and process Keep alive messages. */ for( ulPublishCount = 0; ulPublishCount < ulMaxPublishCount; ulPublishCount++ ) |