pkarashchenko commented on code in PR #1748:
URL: https://github.com/apache/nuttx-apps/pull/1748#discussion_r1193005610


##########
examples/mqttc/mqttc_pub.c:
##########
@@ -278,10 +279,22 @@ int main(int argc, FAR char *argv[])
       goto err_with_socket;
     }
 
+  /* Wait for MQTT ACK or time-out */
+
+  while (!mqtt_cfg.client.event_connect && --timeout > 0)
+   {
+     usleep(10000);
+   }

Review Comment:
   ```suggestion
       }
   ```



##########
examples/mqttc/mqttc_pub.c:
##########
@@ -278,10 +279,22 @@ int main(int argc, FAR char *argv[])
       goto err_with_socket;
     }
 
+  /* Wait for MQTT ACK or time-out */
+
+  while (!mqtt_cfg.client.event_connect && --timeout > 0)
+   {

Review Comment:
   ```suggestion
       {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to