Ask a question

2497 questions

3021 answers

3794 comments

2240 members

Ask a question
0 votes
55 views
asked in Networks by
Hello,

i would like to enable/disable (and configure?) the MQTT Broker (Mosquitto) over CLI. That isn't trivial like setting a value in UCI, because the WebUI initialises stuff like configuration files for the daemon.

How can i do it properly like the WebUI would do it?

Cheers

2 Answers

0 votes
answered ago by
Hi,

Have you tried configuring MQTT over CLI by editing MQTT configuration file (cat /etc/config/mosquitto) and then restarting the services (/etc/init.d/mosquitto restart) ?
0 votes
answered ago by

The configurations dont exist until you enable MQTT over WebUI and the service will not even start without a first WebUI initialisation, because stuff like "user: mosquitto" is missing?