how to verify how many connections are connecting to Mosquitto?

3,696 views
Skip to first unread message

Phuc Tran

unread,
Oct 28, 2015, 9:05:29 PM10/28/15
to MQTT
Hi all,

I'm a new one Mosquitto. I want to know how many connections are connecting to Mosquitto server? I'm recommended using this command($SYS/broker/clients/active), but I don't know how to configure to execute it, Currently my mosquitto is running at default model.
Everyone please tell me know. thanks for any help.

Regards,
Phuc 

Nicholas O'Leary

unread,
Oct 28, 2015, 9:14:48 PM10/28/15
to MQTT

Hi Phuc,

$SYS/broker/clients/active is a topic on the broker that you can subscribe to using an mqtt client. The client will then receive the messages published to this system topic by the broker.

Nick


--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at http://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Phuc Tran

unread,
Oct 28, 2015, 10:27:20 PM10/28/15
to MQTT
thanks knolleary, my problem is syntax command, now it worked, it should be like this mosquitto_sub -d -t '$SYS/broker/clients/active' 
Reply all
Reply to author
Forward
0 new messages