File tree Expand file tree Collapse file tree
samples/mqtt5/mqtt5_pubsub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ int main(int argc, char *argv[])
246246 if (connectionPromise.get_future ().get ())
247247 {
248248 /* *
249- * Subscribe to test topic
249+ * Subscribe
250250 */
251251 // Setup the callback that will be triggered on receiveing SUBACK from the server
252252 fprintf (stdout, " ==== Subscribing to topic '%s' ==== \n " , cmdData.topic .c_str ());
@@ -384,13 +384,13 @@ int main(int argc, char *argv[])
384384 }
385385
386386 fprintf (stdout, " ==== Stopping Client ====\n " );
387- // Disconnect
387+ /* Stop the client. Instructs the client to disconnect and remain in a disconnected state. */
388388 if (!client->Stop ())
389389 {
390390 fprintf (stdout, " Failed to stop Mqtt5Client.\n " );
391391 exit (1 );
392392 }
393393 stoppedPromise.get_future ().wait ();
394-
394+ fprintf (stdout, " ==== Client Stopped! ==== " );
395395 exit (0 );
396396}
You can’t perform that action at this time.
0 commit comments