Subscribe to multiple topics matching a given pattern. (+ takes any metric name)

mosquitto_sub

  • A simple MQTT version 3.1.1 client that will subscribe to topics and print the messages that it receives.
    More information: <https://mosquitto.org/man/mosquitto_sub-1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mosquitto_sub -t {{sensors/machines/+/temperature/+}}

click the source code to copy install mosquitto_sub on any operating system with command-not-found.com