FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14167 questions

16819 answers

27658 comments

54134 members

+1 vote
1,148 views 0 comments
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

+1 vote
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
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?