From 17029c1e11fbcc2b58fab7cfef161d98740aa503 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 15 Mar 2018 11:25:18 +0000 Subject: [PATCH] Minor usage string updates. --- client/pub_client.c | 4 ++-- client/sub_client.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/pub_client.c b/client/pub_client.c index 74c41a17..9859c366 100644 --- a/client/pub_client.c +++ b/client/pub_client.c @@ -246,7 +246,7 @@ void print_usage(void) printf(" -M : the maximum inflight messages for QoS 1/2..\n"); printf(" -n : send a null (zero length) message.\n"); printf(" -p : network port to connect to. Defaults to 1883 for plain MQTT and 8883 for MQTT over TLS.\n"); - printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); + printf(" -P : provide a password\n"); printf(" -q : quality of service level to use for all messages. Defaults to 0.\n"); printf(" -r : message should be retained.\n"); printf(" -s : read message from stdin, sending the entire input as a message.\n"); @@ -254,7 +254,7 @@ void print_usage(void) printf(" -S : use SRV lookups to determine which host to connect to.\n"); #endif printf(" -t : mqtt topic to publish to.\n"); - printf(" -u : provide a username (requires MQTT 3.1 broker)\n"); + printf(" -u : provide a username\n"); printf(" -V : specify the version of the MQTT protocol to use when connecting.\n"); printf(" Can be mqttv31 or mqttv311. Defaults to mqttv311.\n"); printf(" --help : display this message.\n"); diff --git a/client/sub_client.c b/client/sub_client.c index 528bc8bd..0ac0c8ce 100644 --- a/client/sub_client.c +++ b/client/sub_client.c @@ -121,7 +121,7 @@ void print_usage(void) int major, minor, revision; mosquitto_lib_version(&major, &minor, &revision); - printf("mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it receives.\n"); + printf("mosquitto_sub is a simple mqtt client that will subscribe to a set of topics and print all messages it receives.\n"); printf("mosquitto_sub version %s running on libmosquitto %d.%d.%d.\n\n", VERSION, major, minor, revision); printf("Usage: mosquitto_sub {[-h host] [-p port] [-u username [-P password]] -t topic | -L URL [-t topic]}\n"); printf(" [-c] [-k keepalive] [-q qos]\n"); @@ -161,7 +161,7 @@ void print_usage(void) printf(" mqtt(s)://[username[:password]@]host[:port]/topic\n"); printf(" -N : do not add an end of line character when printing the payload.\n"); printf(" -p : network port to connect to. Defaults to 1883 for plain MQTT and 8883 for MQTT over TLS.\n"); - printf(" -P : provide a password (requires MQTT 3.1 broker)\n"); + printf(" -P : provide a password\n"); printf(" -q : quality of service level to use for the subscription. Defaults to 0.\n"); printf(" -R : do not print stale messages (those with retain set).\n"); #ifdef WITH_SRV @@ -169,7 +169,7 @@ void print_usage(void) #endif printf(" -t : mqtt topic to subscribe to. May be repeated multiple times.\n"); printf(" -T : topic string to filter out of results. May be repeated.\n"); - printf(" -u : provide a username (requires MQTT 3.1 broker)\n"); + printf(" -u : provide a username\n"); printf(" -U : unsubscribe from a topic. May be repeated.\n"); printf(" -v : print published messages verbosely.\n"); printf(" -V : specify the version of the MQTT protocol to use when connecting.\n");