I got the Dynamic Security of mosquitto mostly working. However, I'm not sure how to use the listClients command through the json approach, as explained here:
https://github.com/eclipse/mosquitto/blob/master/plugins/dynamic-security/README.md#list-clients
For example, this command works perfectly for me and it lists all the users stored in my /var/lib/mosquitto/dynamic-security.json file:
mosquitto_ctrl -u steve -P Pass1234 dynsec listClients
However, when I use the JSON approach like this:
mosquitto_pub -u steve -P Pass1234 -t '$CONTROL/dynamic-security/v1' -m '{"commands":[{"command": "listClients","verbose":false,"count": -1,"offset": 0}]}';
The result is no output at all.
How do I get the list of clients through the JSON approach as indicated in the README.md file above?
mosquitto_subcommand to see the response?mosquitto_pubwill never return anything. – hardillb Feb 21 '22 at 09:17