Skip to content

Commit ce38230

Browse files
committed
Update README with info on nmqtt_pub and nmqtt_sub.
1 parent 73d4496 commit ce38230

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

README.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ OPTIONS
4848
-c=, --clientid= your connection ID. Defaults to nmqtt_pub_ appended with processID.
4949
-u=, --username= provide a username
5050
-P=, --password= provide a password
51-
-t=, --topic= MQTT topic to publish to.
52-
-m=, --msg= set msg
51+
-t=, --topic= mqtt topic to publish to.
52+
-m=, --msg= message payload to send.
5353
-q=, --qos= quality of service level to use for all messages.
5454
-r, --retain retain messages on the broker.
55+
--repeat= repeat the publish N times.
56+
--repeatdelay= if using --repeat, wait N seconds between publish. Defaults to 0.
57+
--removeretained clear any received retained messages
5558
--willtopic= set the will's topic
5659
--willmsg= set the will's message
5760
--willqos= set the will's quality of service
@@ -72,21 +75,23 @@ Usage:
7275
nmqtt_sub [-h host -p port -u username -P password] -t {topic}
7376
7477
OPTIONS
75-
-?, --help print this cligen-erated help
76-
--help-syntax advanced: prepend,plurals,..
77-
-h=, --host= IP-address of the broker.
78-
-p=, --port= network port to connect too.
79-
--ssl enable ssl. Auto-enabled on port 8883.
80-
-c=, --clientid= your connection ID. Defaults to nmqtt_pub_ appended with processID.
81-
-u=, --username= provide a username
82-
-P=, --password= provide a password
83-
-t=, --topic= MQTT topic to publish to.
84-
-q=, --qos= quality of service level to use for all messages.
85-
--willtopic= set the will's topic
86-
--willmsg= set the will's message
87-
--willqos= set the will's quality of service
88-
--willretain set to retain the will message
89-
-v, --verbose set verbose
78+
-?, --help print this cligen-erated help
79+
--help-syntax advanced: prepend,plurals,..
80+
-h=, --host= IP-address of the broker. Defaults to 127.0.0.1
81+
-p=, --port= network port to connect too. Defaults to 1883.
82+
--ssl enable ssl. Auto-enabled on port 8883.
83+
-c=, --clientid= your connection ID. Defaults to nmqtt_pub_ appended with processID.
84+
-u=, --username= provide a username
85+
-P=, --password= provide a password
86+
-t=, --topic= MQTT topic to publish to.
87+
-q=, --qos= quality of service level to use for all messages. Defaults to 0.
88+
-k=, --keepalive= keep alive in seconds for this client. Defaults to 60.
89+
--removeretained clear any retained messages on the topic
90+
--willtopic= set the will's topic
91+
--willmsg= set the will's message
92+
--willqos= set the will's quality of service
93+
--willretain set to retain the will message
94+
-v, --verbose set verbose
9095
```
9196
9297
_`-verbose` not implemented yet_

0 commit comments

Comments
 (0)