Skip to content

Mosquitto Broker

Very useful links:

Subscribe

Example how to subscribe to system topics:

  • simple
Bash
mosquitto_sub -d -t '$SYS/broker/clients/active'
  • with user and pass
Bash
mosquitto_sub -u <username> -P <password> -d -t '$SYS/broker/clients/total'
Bash
mosquitto_sub -u <username> -P <password> -d -t '$SYS/broker/load/publish/received/+'
Bash
mosquitto_sub -u <username> -P <password> -d -t '$SYS/broker/messages/inflight'
Bash
mosquitto_sub -u <username> -P <password> -d -t '$SYS/broker/messages/sent'
Bash
mosquitto_sub -u <username> -P <password> -d -t '$SYS/broker/publish/messages/dropped'