usage: mqttForTerminal [-h] [-t TOPIC] [-m MESSAGE] [-r]

options:

-h, --help show this help message and exit
-t, --topic MQTT topic
-m, --message Message to send
-r, --read Read messages from topic

Examples

./mqttForTerminal -t mqttTerminal/mytopic -m "Hi"

Response: OK


./mqttForTerminal -t mqttTerminal/mytopic -r

Response: Hi