Frequently used Mosquitto commands
The list of commands used during testing on this site is as follows.
The test will be done later, so for now, let’s just read through it once and pass.
♦ mosquitto -v [-c config filename]
Run MQTT Broker, “-v” shows event log during execution, “-c” specifies mosquitto’s config file
♦ mosquitto_sub -h hostname -t message-topic
Subscribe to a message published on a topic called message-topic in the server/broker of hostname.
♦ mosquitto_pub -h hostname -t message-topic -m message
Publish message to server/broker of hostname using topic called message-topic.
Mosquitto Command List
The commands for Mosquitto/MOTT are simply arranged in the table below.
Mosquitto command reference → § https://mosquitto.org/
|명령 분류||참조 링크|
|Request Response||Clinet||§ https://mosquitto.org/man/mosquitto_rr-1.html|