|
63.
|
|
|
The minimum requirement for this is to use --will-topic to specify which topic the will should be sent out on. This will result in a non-retained, zero length message with QoS 0.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:226(para)
|
|
64.
|
|
|
Use the --will-retain, --will-payload and --will-qos arguments to modify the other will parameters.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:229(para)
|
|
65.
|
|
|
Examples
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:234(title)
|
|
66.
|
|
|
Note that these really are examples - the subscriptions will work if you run them as shown, but there must be something publishing messages on those topics for you to receive anything.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:235(para)
|
|
67.
|
|
|
Subscribe to temperature information on localhost with QoS 1:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:238(para)
|
|
68.
|
|
|
mosquitto_sub -t sensors/temperature -q 1
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:240(para)
|
|
69.
|
|
|
Subscribe to hard drive temperature updates on multiple machines/hard drives. This expects each machine to be publishing its hard drive temperature to sensors/machines/HOSTNAME/temperature/HD_NAME.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:242(para)
|
|
70.
|
|
|
mosquitto_sub -t sensors/machines/+/temperature/+
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:247(para)
|
|
71.
|
|
|
Subscribe to all broker status messages:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:249(para)
|
|
72.
|
|
|
mosquitto_sub -v -t \$SYS/#
|
|
|
|
(no translation yet)
|
|
|
|
Located in
mosquitto_sub.1.xml:251(para)
|