mosquitto_rr 1 Mosquitto Project Commands
mosquitto_rr an MQTT version 5/3.1.1 client for request/response messaging
`mosquitto_rr` options `-e` response-topic `-t` message-topic payload-options `options:`
auth-options connection-options misc-options mqtt-options output-options tls-certificate-options tls-psk-options `auth-options:`
`-u` username `-P` password `connection-options:`
`-h` hostname `--unix` socket path `-p` port-number `-L` URL
`-A` bind-address `--nodelay` `-S` `--ws` `--proxy` socks-url `misc-options:`
`--latency` `-o` config-file `-W` message-processing-timeout `mqtt-options:`
`-c` `-D` command identifier value `-i` client-id `-I` client-id-prefix `-k` keepalive-time `-q` message-QoS `--retain-handling` always | new | never `-V` protocol-version `-x` session-expiry-interval
`output-options:`
`-d` `-N` `--pretty` `--quiet` `-R` `-v` `payload-options:`
`-f` file `-m` message `-n` `-s` `mosquitto_rr` `--help`

## Description

`mosquitto_rr` is an MQTT version 5/3.1.1 client that can be used to publish a request message and wait for a response. When using MQTT v5, which is the default, `mosquitto_rr` will use the Request-Response feature.

The important options are `-t`, `-e`, and one of `-f`, `-m`, `-n`, and `-s`.

Example: `mosquitto_rr -t request-topic -e response-topic -m message`

## Options

&options-intro;

### The options

`-e`

  Response topic. The client will subscribe to this topic to wait for a response.

`--latency`
  &from-version21;

  If this option is specified, mosquitto_rr will print out the latency between it starting to publish a request and the response arriving. This number includes both the broker and client processing times, as well as any inherent network latency.

  This can be used to measure message delivery latency very simply by specifying an identical request and response topic.

  The `--nodelay` option will be automatically used when `--latency` is in use.

`-t`
`--topic`

  The MQTT topic where the request message will be sent.

## Properties

The `-D` / `--property` option allows adding properties to different stages of the mosquitto_rr run. The properties supported for each command are as follows:

## Files

`$XDG_CONFIG_HOME/mosquitto_rr`
`$HOME/.config/mosquitto_rr`
`$HOME/snap/mosquitto/current/.config/mosquitto_rr` (for snap installs)

  Configuration file for default options.

## See Also

- mosquitto 7
- mqtt 7
- mosquitto_pub 1
- mosquitto_sub 1
- mosquitto 8
- libmosquitto 3
- mosquitto-tls 7

## Author

Roger Light roger@atchoo.org