Questions tagged [mqtt]
MQTT - a light on the wire protocol for publish/subscribe. Clients and servers in various languages, C, Python, Erlang, C# and Java and Javascript.
25 questions
0
votes
0
answers
90
views
How to forward data via netns exec namespace
I'm using zmq to receive data from another pc. I would like to formard this received data to the Internet via namespace. I've created this python script:
import subprocess
import zmq
context = zmq....
0
votes
2
answers
749
views
How to run multiple mosquitto brokers on Debian 11?
I want to have 2 mosquitto brokers running on Debian 11, each with it's own configuration.
I have one instance installed and running, but don't know how to start second.
I'm a newbie so please answear ...
0
votes
1
answer
696
views
ModuleNotFoundError running Python Script as systemd task
I have a Python script which I'd like to run at startup. However when I run it as a systemd service, it seems to be unable to find one of the modules. Here's the status message:
● mqttproc.service - ...
0
votes
1
answer
198
views
Trying to fit a complicated bash string into a mqtt message
I am trying to fit the output of the following string (that is a simple number)
df -hl | grep '/dev/mapper/4tb' | awk '{;percent+=$5;} END{print percent}' | column -t
into the following mqtt message
...
2
votes
3
answers
6k
views
Mosquitto unable to use certificates from letsencrypt
I am trying to set up Mosquitto using this guide:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-18-04
I am using ubuntu 20.04 ...
1
vote
1
answer
245
views
Recovering from USB dongle disconnection with systemd
If this is not the right place to post a this question, please say.
I’m running zigbee2mqtt (Zigbee broker) on a USB dongle device (CC2531 with antenna, forgot the antenna model) and a Linux machine (...
0
votes
1
answer
465
views
Disable client SSL certificate
I have generated client key certificate on self signed secure Mosquitto server. I have copied CA and client certificate with client key into client machine. Client subscription runs fine:
...
0
votes
0
answers
42
views
Is it possible to encrypt traffic if I have only CA certificate?
I have simple secure (I guess) Mosquitto server described in my previous question.
Client machine has no any keys or certificate installed except single ca.crt certificate file generated and taken ...
0
votes
1
answer
132
views
Ensure TLS communication security in Mosquitto
I have simple MQTT Mosquitto server that I'm trying to make secure.
Mosquitto.conf:
log_type all
password_file /etc/mosquitto/mosquitto_users.txt
pid_file /var/run/mosquitto.pid
persistence true
...
3
votes
2
answers
8k
views
MQTT Error: Connection Lost
A 'listener' console was setup:
mosquitto_sub -h test.mosquitto.org -t "myTopic" -v
mosquitto_pub returns an error:
pi@raspberrypi:~ $ mosquitto_pub -h test.mosquitto.org -t 'myTopic' -m 'hello ...
0
votes
1
answer
88
views
Can the MQTT output be inferred from test server instructions?
A test MQTT broker can be found at: http://test.mosquitto.org/. The website suggests trying the command:
mosquitto_sub -h test.mosquitto.org -t "#" -v
I believe that the "#" denote a wildcard for ...
0
votes
0
answers
176
views
Why does MQTT Mosquito attempt ot remove a package?
Context: OSMC distro on Raspberry Pi Zero-W. MQTT Mosquitto package installation failed.
Why would an attempt to:
sudo apt-get install mosquitto
trigger an attempt to remove an OSMC package?
The ...
1
vote
1
answer
2k
views
mosquitto_sub –d –t armtronix_mqtt Error: Unknown option '–d'
What information can be gleaned for corrective action to enable subscription to the example MQTT topic?
The goal is to reproduce the test (subscribe & publish), per the instruction's Step 3: an ...
1
vote
1
answer
44
views
Raspbian default MQTT Server?
As I understand it, Raspbian (2019-04-08-raspbian-stretch-full.img) features Node-Red out of the box.
I have seen the youTube examples that show Node-Red configuring an MQTT server and left to wonder ...
3
votes
1
answer
7k
views
installing eclipse/paho.mqtt c++ client on Debian
I'm developing a C++ program (for a home IoT Project) on Debian 9 that needs to act as an MQTT client.
I found paho.mqtt would be helpful in this regard, but none of the on-line documentations to ...