Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
19a1896a
Commit
19a1896a
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add -C option to help output
parent
71b11d51
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#4923
passed
1 year ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/mqtt_sub.js
+7
-6
7 additions, 6 deletions
exec/mqtt_sub.js
with
7 additions
and
6 deletions
exec/mqtt_sub.js
+
7
−
6
View file @
19a1896a
...
...
@@ -41,12 +41,13 @@ for(var i = 0; i < argc; ++i) {
case
'
?
'
:
case
'
help
'
:
print
(
"
options:
"
);
print
(
"
-h MQTT broker hostname or IP address, default:
"
+
mqtt
.
broker_addr
);
print
(
"
-p MQTT TCP port number to use, default:
"
+
mqtt
.
broker_port
);
print
(
"
-q QoS value to use, default:
"
+
mqtt
.
subscribe_qos
);
print
(
"
-N do not append newline to printed messages
"
);
print
(
"
-t Topic to subscribe to (can be repeated), default:
"
+
default_topic
);
print
(
"
-v Use verbose output (include topic)
"
);
print
(
"
-h MQTT broker hostname or IP address, default:
"
+
mqtt
.
broker_addr
);
print
(
"
-p MQTT TCP port number to use, default:
"
+
mqtt
.
broker_port
);
print
(
"
-q QoS value to use, default:
"
+
mqtt
.
subscribe_qos
);
print
(
"
-N Do not append newline to printed messages
"
);
print
(
"
-C n Stop after receiving 'n' (count) messages
"
);
print
(
"
-t Topic to subscribe to (can be repeated), default:
"
+
default_topic
);
print
(
"
-v Use verbose output (include topic)
"
);
print
(
"
-json Output in JSON format (add -pretty for prettier JSON)
"
);
exit
(
0
);
default
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment