You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example exercises the multithreading capabilities of the client library. The client implements two tasks: one that publishes to the broker; and another that waits for messages from the broker. The publish thread is created `NUM_PUB_TASKS` times (10 by default) and sends unique messages to the broker. This feature is enabled using the `--enable-mt` configuration option. The example is located in `/examples/multithread/`.
215
215
216
+
### Atomic publish and subscribe examples
217
+
In the `examples/pub-sub` folder, there are two simple client examples:
218
+
* mqtt-pub - publishes to a topic
219
+
* mqtt-sub - subscribes to a topic and waits for messages
220
+
221
+
These examples are useful for quickly testing or scripting.
222
+
216
223
## Example Options
217
224
The command line examples can be executed with optional parameters. To see a list of the available parameters, add the `-?`
0 commit comments