Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

Filter by
Sorted by
Tagged with
3
votes
2answers
58 views

Is MQTT-SN still “new” or is it obsolete?

I have an existing IoT project based on MQTT and am looking at extending the application to include battery powered end nodes using Zigbee mesh. It logically seems the most appropriate way to do this ...
2
votes
1answer
17 views

Why does MQTT Broker forget connection from SIM800 module?

I am working on SIM800 module and MQTT broker (Mosquitto) to design a kind of IoT device. When i try the MQTT server, i encountered this problem. The SIM800 connects MQTT server on TCP connection. You ...
3
votes
0answers
51 views

What IoT services are available for free that does not have message rate limit?

let say my other device publishes messages every 10ms (trying to show a real time graph in mobile app) sending at slower rate i.e every 1s instead of 10ms would result to wrong output. Are there any ...
3
votes
1answer
45 views

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/...
1
vote
0answers
94 views

Why is Mosquitto broker and Paho client running CPU 100% on connection?

I would like to use the mosquitto MQTT broker using Websockets. I am running mosquitto version 1.6.2 on a Debian 8 server. "normal" MQTT works fine, but I am having a problem trying to connect using ...
3
votes
1answer
421 views

mosquitto_pub succeeds but ThingsBoard device telemetry not updated

I'm using ThingsBoard demo, with a throw-away test device: Name: Test Device ID: 779e65d0-366f-11e9-b411-fdd6fdf5c064 Access Token: DdqzgX0Q4QLBbveiuY8e I set up a subscriber: mosquitto_sub -h demo....
1
vote
1answer
37 views

Does mqtt have late delivery feature if no client is subscribed?

Can Mqtt broker forward messages which have not been sent to any client ?
0
votes
1answer
265 views

POST messages in JSON to mosquitto MQTT not being received from node-RED mqtt node

Not sure how much better I can phrase it in the question but i'll try to explain to the best I can. What I am trying to do: Using IFTTT Webhook to POST a JSON message in MQTT Format. POST URL: ...
5
votes
1answer
2k views

mosquitto_sub: command not found

I'm using a raspberry pi image that has the mosquitto broker installed. To troubleshoot, instruction was to run: pi@raspberrypi:/ $ mosquitto_sub -v -t "gateway/+/rx" However that resulted in: -...
3
votes
1answer
684 views

View the messages sent to the local Mosquitto server

How can I see the messages that are published to the Mosquitto broker which has been locally installed in Ubuntu? I have used Spring Integration and think it worked fine. I also tried commands in ...
5
votes
1answer
390 views

aws iot - mosquitto_sub does not subscribe

This is my policy document: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iot:Connect", "Resource": [ "arn:aws:iot:us-east-2:000000000000:...
2
votes
1answer
82 views

mosquitto - bridging options for remote client identifier

From mosquitto.conf, the following options (among many others) exist for bridging. connection name This variable marks the start of a new bridge connection. It is also used to give the bridge a ...
2
votes
0answers
500 views

Mosquitto service won't start

I have an AWS EC2, Ubuntu-16.04 instance where Mosquitto is installed. I noticed that, the mosquitto process dies out and nothing apparent seems to be appear in the log /var/log/mosquitto/mosquitto....
7
votes
1answer
322 views

mosquitto - Broker won't start with persistence configuration

mosquitto does not seem to like the following options for persistence. # Persistence configuration persistence true persistence_location /data/qos/ persistent_client_expiration 8h The /data/qos does ...
4
votes
1answer
3k views

mosquitto - persistence configuration options

I want to understand the persistence related options in Mosquitto as described here. To begin with, do these options apply only in case of QoS > 0 and/or retained messages? persistence If true, ...
3
votes
1answer
112 views

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 ...
7
votes
1answer
725 views

How to make mosquitto to update topics in database not from memory?

As suggested in another question, we have added destination path as db and autosave_interval as 3000, but after few days memory is getting reducing automatically. Please let me know if there is any ...
4
votes
1answer
326 views

mosquitto - allow_anonymous false shows connected message

I have set the acl_file property in /etc/mosquitto/mosquitto.conf to /home/ubuntu/my.acl. In the ACL file, I have allow_anonymous false to disallow connections from clients that do not have user name. ...
4
votes
1answer
1k views

How to process the MQTT queue once?

I am developing a helper app to clean the retained messages on my Mosquitto MQTT service. The problem I have is how to process the queue once with Paho MQTT. I know how to block the thread (...
6
votes
1answer
581 views

Can mosquitto publish the IP of clients?

I have several devices talking to my Mosquitto MQTT broker and when listening to incoming messages I get all relevant information except the IP of the subscribed client. Is it possible to configure ...
7
votes
1answer
1k views

Are there standardized MQTT topics?

I am new to MQTT (and home automation in general, I am much more in the systems and dev side), flashed a WiFi switch (Sonoff Basic), connected it to an instance of Mosquitto and Home Assistant and so ...
6
votes
3answers
567 views

MQTT Connection Using Keep-Alive > 5 Minutes Silently Disconnects on Azure VM Broker?

Summary of the issue: Connecting to test.mosquitto.org or iot.eclipse.org with a keep alive of more than 5 minutes, and everything seems to work just as expected. Connecting to my broker (both on ...
5
votes
1answer
664 views

How long between PINGREQ and PINGRESP on Mosquitto broker?

I have been chasing a problem with seemingly-random and infrequent disconnects due to "Socket error on client" between my ESP8266 client (PubSubClient 2.6.0) and my Mosquitto broker on Raspberry Pi (...
6
votes
2answers
2k views

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/...
6
votes
1answer
1k views

How can I get access to a public MQTT broker's (like iot.eclipse.org) logs?

There was this recent question in which the OP used iot.eclipse.org as an MQTT broker. This server actually runs the latest released version of Mosquitto broker. I have advised to check the ...
5
votes
0answers
205 views

Offline messages not being send to Adafruit IoT portal by Mosquitto broker

I have a Raspberry Pi in which I have installed Mosquitto broker and MQTT. Pi is connected to sensor and I need to send this data to Adafruit IoT protal. I am able to send all the data when the Pi is ...
4
votes
1answer
719 views

How to setup mosquitto public broker in linux server?

I have linux server running with public ip. I have set up mosquitto broker with the following commands. apt-get install mosquitto apt-get install libmosquitto-dev apt-get install mosquitto-clients ...
7
votes
1answer
436 views

Traffic Shaping and MQTT

There are two MQTT Brokers, the connection between them should enable traffic shaping. Broker A has multiple clients who publish data, Broker B has multiple subscriptions. Is there a possibility to ...
4
votes
2answers
1k views

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 ...
8
votes
2answers
8k views

List clients subscribed to a certain topic in Mosquitto server

So that is the general question, but I'll provide the scenario here. I'm running Mosquitto server to provide mqtt comm between esp relay modules (Sonoff from Itead) and Home Assistant. Most of the ...
7
votes
1answer
347 views

Prevent ping logging in Mosquitto server

Is there any way to prevent PINGREQ and PINGRESP to be logged, keeping all other log_type(s) active? I'm looking for a way to prevent only ping entries to be logged. Here is my mosquitto.conf: ...
8
votes
4answers
9k views

How to enable WebSockets on Mosquitto running on Windows?

I have a Mosquitto broker up and running on my Windows machine. I don't remember if I installed it with Web Sockets support (Cause I didn't knew what that was, or if I needed it). But seeing now my ...
4
votes
1answer
1k views

How to modify Mosquitto's Windows Firewall Inbound Rule to only allow connections from specific IP addresses?

I am trying to set up IP whitelisting for my Mosquitto broker on Windows 7. To do so I have performed the following steps, based on this article: How to Whitelist Your IP - Windows Dedicated. Open ...
8
votes
3answers
20k views

How to enable detailed logging of Mosquitto broker on Windows 7?

I have a previous question and to get closer to a solution I want to enable Mosquitto broker logging on Windows 7. Originally I have started the broker manually as follows: mosquitto -p 1883 -v -v ...
8
votes
1answer
1k views

How to modify only the Client ID in an MQTT CONNECT message?

I am playing around with MQTT CONNECT messages. I have a simple C program which opens a TCP/IP socket towards an Mosquitto broker running on my laptop, sends an MQTT CONNECT message, (normally) ...
8
votes
1answer
992 views

What happens if Mosquitto runs out of memory to store QoS 1/2 messages?

In MQTT, messages with QoS 1 or 2 must be delivered at least once (QoS 2 messages must be delivered exactly once). If the client is not connected, the broker must store the message until the client is ...
10
votes
1answer
1k views

Can a Mosquitto MQTT client forcibly disconnect another?

I've been wondering how an MQTT client could instruct the broker to disconnect a client by some means, in case I need to force-disconnect a client from my MQTT server (for example, if it's misbehaving ...
12
votes
3answers
7k views

Mosquitto on Raspberry Pi refuses connection after changing log settings

In my ongoing endeavors to get my Raspberry Pi to command my stuff I set up a Mosquitto MQTT broker. In the base settings everything went reasonably fine. I could post test messages with the publish ...
7
votes
1answer
10k views

How to start Mosquitto broker service on Windows 7 from command prompt?

I have set up Mosquitto MQTT on my Windows 7 laptop. I have performed the installation process according to this step by step guide. Installation was alright and I could start the Mosquitto Broker's ...
13
votes
2answers
674 views

What simple security tests can I perform on my MQTT network?

I am about to set up an MQTT network at home. I want to build up some knowledge by practical exercises. It would be a small network with the broker hosted on my laptop (Windows 7) and some Raspberry ...
11
votes
3answers
2k views

Should I use Mosquitto's web sockets or connect clients directly?

According to this blog, Mosquitto (the MQTT broker) now supports connecting to clients over web sockets. The blog article seems to hint that web sockets are more useful for browser applications, since ...
16
votes
3answers
5k views

Don’t subscribe to # - so how to dump all messages to database with Mosquitto?

HiveMQ's blog lists under "best practices" not to subscribe to the multi level wildcard when attempting to dump all messages to a database. They claim that the subscribing client may not be able to ...
11
votes
1answer
8k views

mosquitto_sub “connection refused” on Arch Linux

So I installed mosquitto and mosquitto-client on a Raspberry Pi running Raspbian Jessie through apt-get as well as mosquitto on another Pi running Arch Linux through pacman. On Arch the client utils ...
20
votes
2answers
5k views

Can Mosquitto support multiple brokers?

I've been considering Mosquitto for a MQTT message broker for a home IoT network, but I'm concerned that the broker could be a single point of failure which could bring down my whole network if it ...