Questions tagged [mosquitto]

For questions concerning Eclipse Mosquitto, an open source MQTT broker implementation, including setup questions, issues with running the broker, and questions about the behaviour of Mosquitto.

Use this tag for questions that are about Eclipse's Mosquitto broker for MQTT.

Consider the question check list if your question fits the tag. You can also look at the example questions. If this tag doesn't fit your question have a look below at somehow related tags that might fit your question better.

Question checklist

  • Is your question about something that is specific to Mosquitto?
  • Would using alone not be sufficiently clear about your question's constraints?

Example questions

Not what you are looking for?

  • Use when your question is about the MQTT protocol, and your specific choice of broker is not important.

Also, consider reading the tag wiki and using this tag as well as in the majority of cases.

74 questions
7
votes
2 answers

Setting up Mosquitto with SSL

I'm trying to set-up Mosquitto with SSL on my Raspberry Pi 3. I followed this tutorial Now my mosquitto.conf is: listener 8883 cafile /etc/mosquitto/certs/mosq-ca.crt certfile /etc/mosquitto/certs/mosq-serv.crt keyfile…
Davo
  • 79
  • 1
  • 3
6
votes
1 answer

Why does Mosquitto not apply access lists correctly?

I tried to apply an access list to a user, but Mosquitto always takes the highest access level and apply it. I tried to apply this: user roger topic readwrite device/1/# topic read device/1/name/ I also tried: user roger topic read…
Anas Naguib
  • 241
  • 2
  • 3
5
votes
2 answers

Mosquitto debug level log - How to keep all entries but PINGREQ/PINGRESP

I discussed here how to avoid ping messages in logs. By changing log_type(s) in mosquitto.conf I found that pings are reported under DEBUG LEVEL. I would comment this log type in the conf to avoid pings in log, but sadly PUBLISH entries are under…
Dario
  • 319
  • 1
  • 3
  • 6
4
votes
2 answers

Count or list active client connections to mosquitto server

I just want to know how many clients are actively connected to my mosquitto server. Or even better, get a list of client ids connected to my mosquitto server. I read some documentation suggesting the topic $SYS/broker/clients/connected will give…
learningtech
  • 337
  • 3
  • 10
4
votes
3 answers

Mosquitto broker not authenticating, allowing mosquitto_pub and mosquitto_sub anonymously

This is my config file /etc/mosquitto/mosquitto.conf # Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file…
1
vote
1 answer

How to list mosquitto clients using dynamic security feature?

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…
learningtech
  • 337
  • 3
  • 10
0
votes
1 answer

Mosquitto Broker serving two instances of Home Assistant

I have set up a second instance of Home Assistant (named sandbox) where I can play with new releases and features without risking my main Home Assistant. I have always used an MQTT broker external to Home Assistant, but it occurred to me that if…