diff --git a/ChangeLog.txt b/ChangeLog.txt index 4dd09469..7936864a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -132,6 +132,7 @@ Clients: - The `--insecure` option now disables all server certificate verification. - Fix incorrect output formatting in mosquitto_sub when using field widths with `%x` and `%X` for printing the payload in hex. +- Add float printing option to mosquitto_sub. 2.0.14 - 2021-11-17 diff --git a/man/mosquitto_sub.1.xml b/man/mosquitto_sub.1.xml index 4ce52123..26304d1a 100644 --- a/man/mosquitto_sub.1.xml +++ b/man/mosquitto_sub.1.xml @@ -927,12 +927,12 @@ mosquitto_sub -t 'bbc/#' -T bbc/bbc1 --remove-retained Flag characters - The parameters %A, %C, %E, %F, %I, %l, %m, %p, %R, %S, %t, %f, %d, %x, and %X can have optional flags immediately after the % character. + The parameters %A, %C, %d, %E, %F, %f, %I, %l, %m, %p, %R, %S, %t, %x, and %X can have optional flags immediately after the % character. The value should be zero padded. - This applies to the parameters %A, %E, %F, %l, %m, %S, %f, %d, %X, and %x. + This applies to the parameters %A, %E, %d, %F, %f, %l, %m, %S, %X, and %x. It will be ignored for other parameters. If used with the flag, the flag will be ignored. @@ -954,7 +954,7 @@ mosquitto_sub -t 'bbc/#' -T bbc/bbc1 --remove-retained option to set their field width in a similar way to regular printf style formats, i.e. this sets the minimum width when printing this parameter. This applies to the options %A, %C, - %E, %F, %I, %l, %m, %p, %R, %S, %t, %f, %d, %x, %X. + %d, %E, %F, %f, %I, %l, %m, %p, %R, %S, %t, %x, %X. For example would set the minimum topic @@ -1007,8 +1007,10 @@ mosquitto_sub -t 'bbc/#' -T bbc/bbc1 --remove-retained the MQTT v5 content-type property, if present. the MQTT v5 correlation-data property, if present. Note that this property is specified as binary data, so may produce non-printable characters. + the payload is treated as 8byte IEEE754 float (double). the MQTT v5 message-expiry-interval property, if present. the MQTT v5 payload-format-indicator property, if present. + the payload is treated as 4byte IEEE754 float. the length of the payload in bytes. the message id (only relevant for messages with QoS>0). the MQTT v5 user-property property, if present. This will be printed in the @@ -1022,8 +1024,6 @@ mosquitto_sub -t 'bbc/#' -T bbc/bbc1 --remove-retained the message topic. the payload with each byte as a hexadecimal number (lower case). the payload with each byte as a hexadecimal number (upper case). - the payload is treated as 4byte IEEE754 float. - the payload is treated as 8byte IEEE754 float (double).