diff options
author | Archit Aggarwal <architag@amazon.com> | 2020-10-09 10:03:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 10:03:50 -0700 |
commit | 655aa77404eafe8582e288be9c3a72dbc5683547 (patch) | |
tree | 5a928d7ecb0c6f2317ac4a6f9afaf920279568cc | |
parent | c2a9775726006dae2ebe2fb9c40cbd8c1c005d5b (diff) | |
download | freertos-git-655aa77404eafe8582e288be9c3a72dbc5683547.tar.gz |
Remove MQTT_ProcessLoop call not required (#329)final_LTS_development_snapshotlts-development
-rw-r--r-- | FreeRTOS-Plus/Demo/FreeRTOS-IoT-Libraries-LTS-Beta2/mqtt/mqtt_mutual_auth/DemoTasks/MutualAuthMQTTExample.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/FreeRTOS-Plus/Demo/FreeRTOS-IoT-Libraries-LTS-Beta2/mqtt/mqtt_mutual_auth/DemoTasks/MutualAuthMQTTExample.c b/FreeRTOS-Plus/Demo/FreeRTOS-IoT-Libraries-LTS-Beta2/mqtt/mqtt_mutual_auth/DemoTasks/MutualAuthMQTTExample.c index 0a4a77c8c..9cd594f18 100644 --- a/FreeRTOS-Plus/Demo/FreeRTOS-IoT-Libraries-LTS-Beta2/mqtt/mqtt_mutual_auth/DemoTasks/MutualAuthMQTTExample.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS-IoT-Libraries-LTS-Beta2/mqtt/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++ ) |