Python paho-mqtt
can someone help me how to read all the client id that is connected to the broker? ex: i subscribed to some topic and i want to get all the client id who connected to the same topic
Python paho-mqtt
can someone help me how to read all the client id that is connected to the broker? ex: i subscribed to some topic and i want to get all the client id who connected to the same topic
The short answer is: You don't
The Publish/Subscribe model is specifically set up to decouple the publishing clients from the subscribing clients and subscribers from each other.
While on some broker implementations it may be possible to get the list of currently connected clients by monitoring entries in the $SYS/#
topic tree you can not get the list of topics those clients are subscribed to.