|
|
|
@ -200,7 +200,7 @@ void print_usage(void)
|
|
|
|
|
mosquitto_lib_version(&major, &minor, &revision);
|
|
|
|
|
printf("mosquitto_pub is a simple mqtt client that will publish a message on a single topic and exit.\n");
|
|
|
|
|
printf("mosquitto_pub version %s running on libmosquitto %d.%d.%d.\n\n", VERSION, major, minor, revision);
|
|
|
|
|
printf("Usage: mosquitto_pub [-h host] [-p port] [-q qos] [-r] {-f file | -l | -n | -m message} -t topic\n");
|
|
|
|
|
printf("Usage: mosquitto_pub [-h host] [-k keepalive] [-p port] [-q qos] [-r] {-f file | -l | -n | -m message} -t topic\n");
|
|
|
|
|
#ifdef WITH_SRV
|
|
|
|
|
printf(" [-A bind_address] [-S]\n");
|
|
|
|
|
#else
|
|
|
|
@ -230,6 +230,7 @@ void print_usage(void)
|
|
|
|
|
printf(" -i : id to use for this client. Defaults to mosquitto_pub_ appended with the process id.\n");
|
|
|
|
|
printf(" -I : define the client id as id_prefix appended with the process id. Useful for when the\n");
|
|
|
|
|
printf(" broker is using the clientid_prefixes option.\n");
|
|
|
|
|
printf(" -k : keep alive in seconds for this client. Defaults to 60.\n");
|
|
|
|
|
printf(" -l : read messages from stdin, sending a separate message for each line.\n");
|
|
|
|
|
printf(" -m : message payload to send.\n");
|
|
|
|
|
printf(" -M : the maximum inflight messages for QoS 1/2..\n");
|
|
|
|
|