-- Leo's gemini proxy

-- Connecting to freeshell.de:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

mosquitto_sub


> A simple MQTT version 3.1.1 client that will subscribe to topics and print the messages that it receives.

More information.


Subscribe to the topic `sensors/temperature` information with Quality of Service (`QoS`) set to 1. (The default hostname is `localhost` and port 1883):

mosquitto_sub -t {sensors/temperature} -q {1}

Subscribe to all broker status messages publishing on `iot.eclipse.org` port 1885 and print published messages verbosely:

mosquitto_sub -v -h "iot.eclipse.org" -p 1885 -t {\$SYS/#}

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

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


> Copyright © 2014—present the tldr-pages team and contributors.

> This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY



-- Response ended

-- Page fetched on Tue May 21 04:06:44 2024