Skip to content

Commit bab641e

Browse files
committed
more prints
1 parent 6dbde89 commit bab641e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

samples/mqtt5/mqtt5_pubsub/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)