1,526 questions
-1
votes
0
answers
33
views
Mosquitto broker on Windows only accessible locally, cannot connect from LAN/ESP32 [duplicate]
Mosquitto only works locally, cannot connect from ESP32
I installed Mosquitto on Windows 10 and the broker works locally. I can publish and subscribe between terminals on the same machine without any ...
0
votes
0
answers
100
views
Unsubscribe from topic not working when using persistent session Mqtt
I have a Qt application that uses the qtmqtt module to implement a simple MQTT setup.
I’m running two instances — one as a subscriber and one as a publisher.
In the app, users can right-click on any ...
0
votes
0
answers
40
views
Can't perform any action using admin account with mosquitto_dynamic_security (Windows)
Currently we was using the acl and password file for mosquitto broker**, but now we have to use dynamic_security plugin to manage permissions and users.
But I am facing Non Authorize issue
Also we are ...
0
votes
0
answers
29
views
MQTT Downlink from ThingsBoard Repeats on Every Device Re-Subscription (Despite QoS=0 and retain=false)
We’re implementing MQTT downlinks from ThingsBoard CE to IoT devices but are encountering unexpected behavior:
The Problem
When sending a downlink message, it appears to get "stuck" in the ...
1
vote
1
answer
60
views
QoS 2 messages reach the broker but don't get forwarded
I've been struggling for a week now with an MQTT issue that seems both subtle and difficult to trace.
Please see that the images pasted are of the same session. The bunch of data sent after these sync ...
0
votes
1
answer
114
views
MqttNet + Mosquitto default server. No response on malformed packet
I have a fresh install of mosquitto service that I configured with a username and password login, and a port. Just getting into the intricacies of it for my project.
I have a bit of code in my C# ...
2
votes
1
answer
196
views
MQTT.js does not accept certificate chain
I try to secure-connect to mosquitto with MQTT.js (https://www.npmjs.com/package/mqtt) and I always get the following error:
node.js
Error: self-signed certificate in certificate chain
at ...
0
votes
1
answer
236
views
Mosquitto MQTT not respecting ACL
I'm trying to implement an internet-facing instance of Mosquitto MQTT. Naturally, I want to make it as secure as I can.
I've successfully implemented SSL, and user authentication and access. But, I'm ...
0
votes
1
answer
433
views
MQTTnet not being able to connect to broker anymore
I am developing a .NET 8.0 Blazor application which uses MQTTnet to send some data to a mosquitto (v2.0.21, running in docker) broker, that is being used by another application (basically just a ...
1
vote
1
answer
686
views
Mosquitto MQTT: "Connection was lost" error when publishing a message
I am trying to test MQTT functionality and have installed Eclipse Mosquitto on my workstation.
To subscribe to a topic, I use the following command:
"C:\Program Files\mosquitto\mosquitto_sub"...
0
votes
1
answer
78
views
MQTT bridge unable to connect to broker with SSL
I'm trying to connect Mosquitto bridge to the broker with SSL. I've prepared configuration basing on these:
http://www.steves-internet-guide.com/mosquitto-tls/
http://www.steves-internet-guide.com/...
0
votes
1
answer
39
views
mosquitto_sub not accepting cafile
Having a w10 machine, named "broker", hosting a mosquitto broker configured as a tls server with conf file:
listener 8883
allow_anonymous true
cafile CACert.crt
certfile serverCert.crt ...
0
votes
1
answer
67
views
SSL certificate issues with certificate generated by python script and used in mosquitto
I am trying to use ssl with mosquitto.
I am generating certificate with python script:
# This script will generate a CA's private key and self-signed certificate,
# a server's private key and CSR, and ...
0
votes
1
answer
62
views
How to get feedback when publishing or subscribing to ACL-forbidden topics?
I want to restrict my microservices to publish and/or subscribe to only specific mqtt topics in my eclipse mosquitto broker (2.0.20, docker).
The restrictions in my acl file work fine, but I can't see ...
0
votes
0
answers
55
views
MQTT (mosquitto) bridged broker doesn't send reason code to app
I'm trying to set up a system where there's some IoT-like devices and a general broker that connects those devices together via a bridge (the reason having this bridging of brokers is that I'd like ...
0
votes
1
answer
317
views
Exclude a topic from wildcard topic on a mosquitto bridge
I have configured a bridge topic on a mosquitto broker with a wildcard like this:
topic sensor/# both 1
But I want to exclude a specific topic tree sensor/test/#. The sensor/test messages should be ...
0
votes
0
answers
148
views
MQTT broker TLS error when connecting with client
I am testing a C code using mosquitto library.
First, below is the broker conf related to TLS.
per_listener_settings true
listener 1883 0.0.0.0
allow_anonymous true
listener 8883 0.0.0.0
...
1
vote
1
answer
74
views
mosquitto_pub reset communication because Alert (Level: Fatal, Description: Unknown CA)
I tried to connect for remote MQTTS server (port 8883), that not mine using mosquitto_pub .
mosquitto_pub -h example.com -p 8883 -t "TOPIC" -m "message" -u "USER" -P &...
0
votes
0
answers
197
views
Setting Up Eclipse Mosquitto on Kubernetes
I'm currently developing a microservices-based API using Node.js, Docker, and Kubernetes. For inter-service communication, I’ve implemented NATS Streaming Server. Additionally, I use Ingress-Nginx as ...
0
votes
0
answers
47
views
Subscriber only receives first 2/3 of messages from publisher when using QoS1 or above for publishing
I am testing a mosquitto server using two python programs. The mosquitto broker is a docker on a linux machine, the python programs are running on my windows machine. One is subscribed to the topic &...
0
votes
1
answer
206
views
Getting "Extended authentication not enabled" in Mosquitto authentication plugin
I am using the mosquitto-go-auth plugin for authentication in mosquitto broker.
I have setup the plugin by following these link
https://github.com/iegomez/mosquitto-go-auth
https://www.chirpstack.io/...
0
votes
0
answers
44
views
Mosquitto Broker Sometimes Connects but Fails to Send/Receive Messages in EC2 Environment
I'm running a Mosquitto broker on an EC2 instance with the following setup:
ACL: Done via API on EC2 localhost
TLS Communication: Using self-signed certificates
Clients: Connecting from various ...
0
votes
1
answer
139
views
Paho Java Mqttv5 Connection lost (32109) to Azure IoT Hub
I have a Java MQTTv5 client using Paho library v1.2.6
I am sure that all credential are correct and accurate.
I have tried using mosquitto_pub (v2.0.18) and MQTTBox to connect and published to the ...
0
votes
1
answer
148
views
Fail in publish using paho mqtt client
I am trying to send a file through the MQTT protocol using the Paho MQTT as client and the Mosquitto MQTT broker.
Client code to send the message:
import paho.mqtt.client as mqtt
# Define the broker ...
1
vote
0
answers
707
views
How to get paho mqtt client to trust a self-signed certificate for TLS
Currently, I am working on a MQTT test project. So I have set up a Mosquitto MQTT broker that must work with TLS. The Problem is, that I cant establish a connection through the PAHO MQTT client using ...
0
votes
1
answer
76
views
MQTT bridge_to_target authorization issue
I am trying to run two separate brokers on one linux device.
I setup the two brokers with the following little script (omitted the second one for readability as it is identical except for the ending ...
0
votes
0
answers
34
views
Get Client Id on_message in Subscriber [duplicate]
in subscriber, I want to know the client id of the publisher.
but not working..
def on_message(mqttc, obj, msg):
_logger.info(msg.topic + " " + str(msg.qos) + " " + str(msg....
1
vote
1
answer
1k
views
How to configure mosquitto to retain sessions? Why is it discarding my sessions out of the box?
I'm trying to use paho-mqtt (python client) persuade mosquitto to retain a session between client connects, but every time I connect (with the same user,password,client id) the session is not retained....
0
votes
0
answers
331
views
Reason for mosquitto_pub TLS error: alert unknown ca?
I am using a self signed certificate for Mosquitto MQTT broker.
When I try to publish something to the server via mosquitto_pub -h mqtt.sustainable-data-platform.org -p 8883 --cafile ./intermediate-mq....
0
votes
0
answers
394
views
Mosquitto MQTT-Broker (Bridge) stops storing messages in persistence after a while when disconnected
I'm running 2 Systems:
one has the Publisher (sends data every 10 seconds) and a mosquitto-broker configured as a bridge.
The other system has the main mosquitto-broker and the subscriber-client ...
0
votes
1
answer
324
views
Mosquitto Access Control List (ACL) not working
I have a mosquitto MQTT broker running on a Windows machine. I'm trying to control the topics to which a certain user can subscribe an publish.
I've created a test user ("test") and added ...
0
votes
1
answer
501
views
MQTT v 3.1.1 clean session not behaving as expected on connection lost
I am currently testing the clean session feature of MQTT, for my IoT project.
My system architecture is quite simple: I have a subscriber on the same machine as the **broker **(Mosquitto, MQTT version ...
-1
votes
1
answer
152
views
mosquitto bad JSON interpretation subscriber
I am trying to publish a message in JSON via -m with a mosquitto publisher. The problem is that my subscriber receive the JSON message without the "" for every single key... so that the ...
0
votes
1
answer
94
views
Can send an SSL message via mosquitto but getting CERTIFICATE_VERIFY_FAILED from python paho script
Using mosquitto:
mosquitto_pub -h <public ip address> -t testssl/topic -m "hello world" --cafile ./ca_certificate.pem -p 8883 --tls-version tlsv1.2 -d --id client2
Client client2 ...
0
votes
0
answers
59
views
Can't deploy a python server and mosquitto broker
I have this Dockerfile:
# Use the official python image
FROM python:3.12
# set the working directory
WORKDIR /app
# copy the current directory contents into the container at /app
COPY . /app
### ...
0
votes
0
answers
309
views
Getting ECONNRESET Error When Publishing Data to MQTT Broker Using paho-mqtt in Python
I'm doing a project for class, and I need to send data values from a device to other. I thought that the best option was to use MQTT.
I'm using the broker test.mosquitto.org. I need to send ...
1
vote
2
answers
1k
views
How to fix user creation issue in eclipse-mosquitto Docker deployment without restarting the container?
I am trying to create a broker server with eclipse-mosquitto with a docker compose file. The problem I'm facing that I cannot set users and passwords when starting the containers. I can set them after ...
2
votes
1
answer
84
views
Displaying Irrelevant Sensor Data in FIWARE Orion When Using IoT Agent-JSON and Mosquitto
I am developing an IoT application using FIWARE IoT Agent-JSON and Mosquitto. I create test devices, assign sensors to these devices, and publish data for these sensors via Mosquitto. I can correctly ...
2
votes
1
answer
196
views
Setting Up mosquitto-go-auth on Windows
I'm currently trying to set up mosquitto-go-auth on Windows 11, but I'm encountering some difficulties. The documentations mentioned in the Readme file of the Repo is completely based on linux and I ...
0
votes
1
answer
617
views
Mqttx Connecting to MQTT Broker...failed with state -2
I am trying to connect to a mosquitto server on my local computer using an ESP32. I have already installed mosquitto, it is running and a local MQTTX client was able to connect to it but my ESP32 is ...
0
votes
0
answers
260
views
Window 10 -Mosquitto MQTT broker: client connection error
Mosquitto MQTT broker is host on PC a, ip address: 177.213.175.194 (example)
my mosquitto.conf
#default listener
listener 1818
protocol mqtt
use mqtt client to connect Mosquitto MQTT broker is ...
0
votes
0
answers
86
views
I am trying to send a message with my mosquitto library wrapper. The first message is successful, but all messages after that are not
When I try to publish to two or more subscriptions with a client, the program halts and just stays like that. Publishing just one message works.
The wrapper is called Client, which handles handshakes, ...
0
votes
1
answer
227
views
Docker mosquitto Adress not available [duplicate]
I try to build a docker-compose for mosquitto and node red, but no matter what i do, i always get the same error from mosquitto.
mosq | 1716134494: Error: Address not available
i even tried to ...
0
votes
1
answer
99
views
PHP-MQTT publisher crashes subscriber
I have the following docker containerized Mosquitto:
ecosystem:
image: eclipse-mosquitto:latest
ports:
- '1883:1883'
volumes:
- ./mosquitto/config:/mosquitto/config
- ./...
1
vote
1
answer
293
views
How to implement reactive communication between a Python server, an MQTT broker, and a web client using WebSockets?
I'm working on a project where I want to implement a system that can receive messages from an MQTT broker implemented with Mosquitto and forward them reactively to a web browser without resorting to ...
-1
votes
1
answer
337
views
MQTT and mosquitto with twincat can't connected [closed]
I'm writing here because I'm facing a problem with twincat and mqtt. I set up my broker (mosquitto 2.0.18)
I had fun before using the MQTT protocol with twincat to just connect the broker with another ...
0
votes
0
answers
592
views
MQTT Error. Error: Unable to load CA certificates. Check cafile "C:\Program Files (x86)\mosquitto\certs\ca.crt"
Currently I am using Local Mosquitto Broker to run my project. This is the link "https://github.com/Infineon/mtb-example-wifi-mqtt-radar-presence". The problem is when I am doing the Setting ...
0
votes
1
answer
248
views
Cannot open source file "mosquitto.h"C/C++(1696)
I am trying to include mosquitto.h into my project. I installed mosquitto from "mosquitto-2.0.18-install-windows-x64" installer to C:\Program Files\mosquitto\devel.
It seems like I have to ...
0
votes
1
answer
122
views
How can I add a suffix to an MQTT topic
I am using a polar H10 heart rate sensor which connects a mobile phone app called polar sensor data logger. I am using this app to publish the data using MQTT protocol . The publishes sensor readings ...
1
vote
2
answers
1k
views
Sending large files over MQTT / mosquitto - limit at 4MB
My goal is to be able to send a file of around 150MB over mosquitto. The matters of efficiency of such transfer are not important at the moment, it's just to find out if such a transfer is possible.
...