Fix clientid option

Add a common pattern for the default Client ID of the example applications.
Signed-off-by: 's avatarGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
parent 37cd6338
......@@ -28,7 +28,7 @@
--port 1883
--qos 0
--delimiters \n
--clientid stdin_publisher
--clientid stdin-publisher
--maxdatalen 100
--keepalive 10
......@@ -66,7 +66,7 @@ void usage()
printf(" --qos <qos> (default is 0)\n");
printf(" --retained (default is off)\n");
printf(" --delimiter <delim> (default is \\n)\n");
printf(" --clientid <clientid> (default is hostname+timestamp)");
printf(" --clientid <clientid> (default is stdin-publisher)\n");
printf(" --maxdatalen 100\n");
printf(" --username none\n");
printf(" --password none\n");
......@@ -108,7 +108,7 @@ struct
int keepalive;
} opts =
{
"publisher", "\n", 100, 0, 0, NULL, NULL, "localhost", "1883", 0, 10
"stdin-publisher", "\n", 100, 0, 0, NULL, NULL, "localhost", "1883", 0, 10
};
void getopts(int argc, char** argv);
......
......@@ -28,7 +28,7 @@
--port 1883
--qos 0
--delimiters \n
--clientid stdin_publisher
--clientid stdin-publisher-async
--maxdatalen 100
--keepalive 10
......@@ -65,7 +65,7 @@ void usage()
printf(" --qos <qos> (default is 0)\n");
printf(" --retained (default is off)\n");
printf(" --delimiter <delim> (default is \\n)\n");
printf(" --clientid <clientid> (default is hostname+timestamp)");
printf(" --clientid <clientid> (default is stdin-publisher-async)\n");
printf(" --maxdatalen 100\n");
printf(" --username none\n");
printf(" --password none\n");
......@@ -97,7 +97,7 @@ struct
int keepalive;
} opts =
{
"publisher", "\n", 100, 0, 0, NULL, NULL, "localhost", "1883", 0, 10
"stdin-publisher-async", "\n", 100, 0, 0, NULL, NULL, "localhost", "1883", 0, 10
};
void getopts(int argc, char** argv);
......
......@@ -30,7 +30,7 @@
--port 1883
--qos 2
--delimiter \n
--clientid stdout_subscriber
--clientid stdout-subscriber
--showtopics off
--keepalive 10
......@@ -66,7 +66,7 @@ void usage()
printf(" --port <port> (default is 1883)\n");
printf(" --qos <qos> (default is 2)\n");
printf(" --delimiter <delim> (default is \\n)\n");
printf(" --clientid <clientid> (default is hostname+timestamp)\n");
printf(" --clientid <clientid> (default is stdout-subscriber)\n");
printf(" --username none\n");
printf(" --password none\n");
printf(" --showtopics <on or off> (default is on if the topic has a wildcard, else off)\n");
......
......@@ -30,7 +30,7 @@
--port 1883
--qos 2
--delimiter \n
--clientid stdout_subscriber
--clientid stdout-subscriber-async
--showtopics off
--keepalive 10
......@@ -84,7 +84,7 @@ struct
int keepalive;
} opts =
{
"stdout-subscriber", 1, '\n', 2, NULL, NULL, "localhost", "1883", 0, 10
"stdout-subscriber-async", 1, '\n', 2, NULL, NULL, "localhost", "1883", 0, 10
};
......@@ -96,7 +96,7 @@ void usage()
printf(" --port <port> (default is 1883)\n");
printf(" --qos <qos> (default is 2)\n");
printf(" --delimiter <delim> (default is no delimiter)\n");
printf(" --clientid <clientid> (default is hostname+timestamp)\n");
printf(" --clientid <clientid> (default is stdout-subscriber-async)\n");
printf(" --username none\n");
printf(" --password none\n");
printf(" --showtopics <on or off> (default is on if the topic has a wildcard, else off)\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment