What is mosquitto -c /etc/mosquitto/mosquitto.conf exactly running in background? Looking into config file I can not understand if it is broker, client, library handler. Insight into sources does not help too.

Do I need this executable running in order for application using Mosquitto library to work?

The goal is to shut down as many unneeded processes as possible to minimize single ARM core running something else than target app and kernel.

To use MQTT you need both a broker and some clients. The executable /usr/sbin/mosquitto is the Mosquitto MQTT broker which your clients can connect to. If you do not want your device to operate as a broker/server, then it is not necessary to have the Mosquitto broker running.

I hope that helps.



1 Like

Hello Roger, thank you very much for your response. Yes, I connect to another broker on the network, therefore can remove this process from the local machine and client program running on this machine must continue working properly.