Skip to content

Commit 6fd0bc8

Browse files
BeardTwistedTwigleg
Beard
authored andcommitted
Modified the basic pub sub sample section of the README.md file
1 parent bc51b8a commit 6fd0bc8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

samples/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ cmake --build . --config "<Release|RelWithDebInfo|Debug>"
3535
This sample uses the
3636
[Message Broker](https://docs.aws.amazon.com/iot/latest/developerguide/iot-message-broker.html)
3737
for AWS IoT to send and receive messages through an MQTT connection.
38-
On startup, the device connects to the server and subscribes to a topic.
39-
40-
The terminal prompts the user for input. Type something and press enter to publish a message to the topic.
41-
Since the sample is subscribed to the same topic, it will also receive the message back from the server.
42-
Type `quit` and press enter to end the sample.
38+
On startup, the device connects to the server, subscribes to a topic, and begins publishing messages to that topic. The device should receive those same messages back from the message broker, since it is subscribed to that same topic. Status updates are continually printed to the console.
4339

4440
Source: `samples/mqtt/basic_pub_sub/main.cpp`
4541

@@ -92,7 +88,7 @@ and receive.
9288
To run the basic MQTT Pub-Sub use the following command:
9389

9490
``` sh
95-
./basic-pub-sub --endpoint <endpoint> --ca_file <path to root CA>
91+
./basic-pub-sub --endpoint <endpoint> --ca_file <path to root CA1>
9692
--cert <path to the certificate> --key <path to the private key>
9793
--topic <topic name>
9894
```

0 commit comments

Comments
 (0)