Commit graph

105 commits

Author SHA1 Message Date
Roger A. Light
68f3b8428c Man page fixes and add version info to command args
Closes #3468. Thanks to Tom Earp.
2026-02-02 16:33:37 +00:00
Roger A. Light
9b6265cdbc man: Simplify xincludes 2026-02-02 16:33:37 +00:00
Roger A. Light
c74f197368 man pages: Add 'See Also' mosquitto(7) to all pages 2026-01-16 13:32:33 +00:00
Roger A. Light
d5d3eb3e19 Huge man page refactor and tidy 2025-08-11 23:57:45 +01:00
Roger A. Light
32c2b64081 Add --retain-handling to sub and rr clients 2025-08-11 12:17:17 +01:00
Roger A. Light
c48a4122f4 Man page improvements
Closes #3311.
2025-07-31 15:14:17 +01:00
Roger A. Light
b8ffdb878e Merge from master 2025-07-25 19:13:51 +01:00
Roger A. Light
98c13882f6 Man: Break out some common options 2025-04-08 09:06:12 +01:00
Roger A. Light
67f2aff4ba Improve manpage readability 2025-04-03 11:37:15 +01:00
Roger A. Light
bd52ede4de Remove support for TLS v1.1 2025-04-01 11:36:39 +01:00
Roger A. Light
dcbe922ed0 Add --message-rate option to mosquitto_sub
When active, this prints the count of messages received each second.
2025-03-28 10:50:17 +00:00
Roger A. Light
8a8d6e043e mosquitto_sub: Add optional hex payload field separation 2024-02-26 00:19:32 +00:00
Roger A. Light
3c2ad96c66 Improve text 2024-02-24 23:22:11 +00:00
Roger A. Light
e656e694ed Merge branch 'master' into develop 2023-09-09 15:20:40 +01:00
Roger A. Light
5fbe8e5be2 Add --tls-keylog for clients. 2023-03-03 15:31:46 +00:00
Roger A. Light
7f0cd48921 Formatting plus whitespace tidy 2023-03-03 15:31:46 +00:00
Roger A. Light
9260cf25f8 Fix parsing of IPv6 addresses in socks proxy urls. 2023-01-16 10:31:13 +00:00
Rony B Chandran
d1cdaec963
Removed repeated line
<listitem><para><option>%I</option> ISO-8601 format date and time, e.g. 2016-08-10T09:47:38+0100</para></listitem>
2022-11-22 11:53:31 +05:30
Roger A. Light
e5cb3d0d58 Using -x now sets the clients to use MQTT v5.0. 2022-08-12 15:03:00 +01:00
Roger A. Light
a84b5abb69 Update changelog and sort documentation order. 2022-04-29 22:02:41 +01:00
Michał Łyszczek
91bca8899c mosquitto_sub: add support to print floats
This patch adds support for two new format specifiers (%f and %d)
to print float and double data.

Generally it's not save to directly take native binary data of one machine and
print it on another one (since mosquitto is multiarch). But in case of floats
it's save to print representation of it, if __STDC_IEC_559__ is defined.

In C99 Annex F, standard we can read:
> This annex specifies C language support for the
> IEC 60559 floating-point standard.
> (...)
> An implementation that defines __STDC_IEC_559__
> shall conform to the specifications in this annex

All float printing code is behind __STDC_IEC_559__, so if that is not
defined, floating print will be disabled and error returned to user.

Documentation also describes restrictions about printing floats.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-04-24 17:33:37 +02:00
Roger A. Light
ab67dbcacd More client tests, and an output format fix. 2022-01-15 23:41:12 +00:00
Roger Light
538154bd9c The --insecure option now disables all server certificate verification. 2021-10-29 22:53:55 +01:00
Roger A. Light
8ac11929cc Merge branch 'master' into develop 2021-10-27 17:19:33 +01:00
Roger A. Light
799cdead15 Experimental custom websockets support. 2021-10-06 15:32:45 +01:00
Roger A. Light
a1a190b482 Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
Roger A. Light
aa29b45e70 Merge branch 'master' into develop 2021-09-07 19:17:11 +01:00
Roger A. Light
756b3fcb08 Document TLS certificate behaviour when using -p 8883. 2021-08-24 23:15:06 +01:00
Roger A. Light
ec895f2ad3 mosquitto_sub now only needs -t or -U to run
This means that `-t` is not required in all situations.
2021-07-05 16:06:22 +01:00
Roger A. Light
de0e275ccb mosquitto_sub --watch can now be called as -w. 2021-06-25 18:28:25 +01:00
Roger A. Light
e4160b083a Add --watch to mosquitto_sub. 2021-06-25 12:13:58 +01:00
Roger A. Light
214feb8f6b Merge branch 'fixes' into develop 2021-05-21 15:42:26 +01:00
Roger A. Light
d3dd89da82 Fix man page typos. 2021-04-18 09:10:27 +01:00
Roger A. Light
8dbfdc0495 Add --no-tls option for all clients.
This disables all TLS options for that instance. This is useful for
negating TLS options provided in a config file, or to disable the
automatic use of TLS when using port 8883.

Closes #2180. Thanks to Elliott Balsley.
2021-04-15 09:52:34 +01:00
Roger Light
efad820706 Add -o option for all clients loading options from a specific file. 2021-04-10 00:39:54 +01:00
Roger Light
f1f0396d86 Fix links in man pages. 2021-04-09 23:21:29 +01:00
Roger A. Light
29c771cdd4 Add lib and client support for OS CA certs
- Add `MOSQ_OPT_TLS_USE_OS_CERTS` option, to instruct the client to load and  trust OS provided CA certificates for use with TLS connections.
- All clients now load OS provided CA certificates if used with `-L
  mqtts://...`, or if port is set to 8883 and no other CA certificates are
  used. Closes #1824.
- Add the `--tls-use-os-certs` option to all clients.

Closes #1824. Thanks to Jens Reimann.
2020-12-01 11:51:13 +00:00
Roger A. Light
c90e49af1b Merge remote-tracking branch 'origin/fixes' into develop 2020-09-24 17:03:14 +01:00
Roger A. Light
bab8cc2a6b mosquitto_sub now supports extra format specifiers.
These are for field width and precision for some parameters.
2020-08-28 22:23:22 +01:00
Roger A. Light
938e17a3d0 Fix incorrect authentication-method property type in mosquitto_sub man.
Closes #1801. Thanks to roebotron.
2020-08-24 09:59:36 +01:00
Roger A. Light
9929ce0a26 All clients exit with an error exit code on CONNACK failure.
Closes #1778. Thanks to jflambert.
2020-08-12 09:44:42 +01:00
Roger A. Light
b726e2f1ec mosquitto_sub %j and %J timestamps are now in a ISO 8601 compatible format. 2020-05-06 22:21:21 +01:00
Roger A. Light
0da723c1ec Add --random-filter to mosquitto_sub. 2020-03-03 14:12:30 +00:00
Roger A. Light
3671a6dfdb Add -x argument to all clients.
This allows the session-expiry-interval property to be easily set for
MQTT v5 clients.
2020-01-30 11:19:09 +00:00
Roger A. Light
d60e86d2a3 Add TCP_NODELAY support to lib and clients.
Closes #1526. Thanks to Felix Moessbauer.
2019-12-18 17:04:43 +00:00
Roger Light
1c6666b63a Add user-property output support to sub/rr. 2019-10-15 15:54:46 +01:00
Roger A. Light
59c0bfe6e1 Add support for v5 property printing to mosquitto_sub/rr in non-JSON mode. 2019-10-15 15:23:29 +01:00
Roger A. Light
9e4226622f Add --pretty option to mosquitto_sub/rr
If active, this produces formatted JSON output rather than the normal
minimised output.
2019-10-15 14:44:25 +01:00
Roger A. Light
ad5c2e11d9 Use cJSON for producing JSON output in clients.
Closes #1222. Thanks to Ben Barbour.
2019-10-15 11:59:22 +01:00
Roger A. Light
499e2f2e98 Add support for unix sockets to broker, lib, and clients. 2019-10-08 20:55:31 +01:00