Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
94 views

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....
Raúl Parada Medina's user avatar
0 votes
2 answers
772 views

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 ...
Marek J.'s user avatar
0 votes
1 answer
705 views

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 - ...
KDM's user avatar
  • 113
0 votes
1 answer
203 views

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 ...
giovi321's user avatar
  • 919
2 votes
3 answers
6k views

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 ...
Stonecraft's user avatar
1 vote
1 answer
253 views

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 (...
Gal's user avatar
  • 661
0 votes
1 answer
478 views

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: ...
vico's user avatar
  • 853
0 votes
0 answers
45 views

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 ...
vico's user avatar
  • 853
0 votes
1 answer
137 views

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 ...
vico's user avatar
  • 853
3 votes
2 answers
8k views

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 ...
gatorback's user avatar
  • 1,532
0 votes
1 answer
88 views

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 ...
gatorback's user avatar
  • 1,532
0 votes
0 answers
176 views

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 ...
gatorback's user avatar
  • 1,532
1 vote
1 answer
2k views

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 ...
gatorback's user avatar
  • 1,532
1 vote
1 answer
48 views

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 ...
gatorback's user avatar
  • 1,532
3 votes
1 answer
7k views

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 ...
ChinM's user avatar
  • 33
1 vote
0 answers
391 views

My config.mk file has the following settings: # Select your backends from this list BACKEND_CDB ?= no BACKEND_MYSQL ?= no BACKEND_SQLITE ?= no BACKEND_REDIS ?= no BACKEND_POSTGRES ?= yes BACKEND_LDAP ...
ussrback's user avatar
  • 155
1 vote
1 answer
4k views

I want to compile mosquitto-auth-plugin, which requires configuration of config.mk file, where one of the required parameter is to Specify the path to the Mosquitto sources MOSQUITTO_SRC =.Could you ...
ussrback's user avatar
  • 155
0 votes
1 answer
298 views

I am trying MQTT on my Raspberry Pi running Raspbian. The basic setup works, but I can't seem to configure persistence. Following https://tutorials-raspberrypi.com/raspberry-pi-mqtt-broker-client-...
Milliways's user avatar
  • 1,408
2 votes
2 answers
2k views

Hi I want to try and convert a message receieved from MQTT into a variable so I can do an "IF script" using messages sent from a certain topic on mqtt. I tried this at top of script but didn't work: ...
Gundam0079's user avatar
4 votes
1 answer
2k views

I am trying to write fail2ban filter to block bruteforcing IP addresses which are trying to subscribe to username/password protected mosquitto service by guessing username/password combinations. On ...
Nerijus's user avatar
  • 66
1 vote
2 answers
2k views

I have written a small bash script (datalogger.sh) to store the mqtt data on to SD card inside a linux machine. The bash script is as below:- #!/bin/bash fileNumber=1 temp=1 // flag to check and ...
Usman Asghar's user avatar
0 votes
1 answer
313 views

mosquitto_sub -v -h 127.0.0.1 -p 1883 -t 'gyro' | sed 's/[^ ]* //' | pdsend 3000 localhost udp this command doesn't output anything. while it should output a value I receive over mqtt. without sed 's/...
J0r15's user avatar
  • 3
0 votes
1 answer
39k views

I am running the mosquitto broker on arch linux x64. I wanted to restart the mosquitto service by doing the following: sudo systemctl mosquitto restart But apparently I am prompted with Unknown ...
Kyu96's user avatar
  • 193
2 votes
1 answer
1k views

I'm currently looking for some solution or advice. I need to play and control (yep, this is very important for me) many streams (probably from one source). For example.. my system plays some relax ...
user922871's user avatar
1 vote
1 answer
2k views

I'm receiving a MQTT message with mosquitto_sub and I want to redirect the output (two strings) to a function. CLIENT: mosquitto_pub -d -t hello/world/ -m "Alessio,base64" On the server I have a ...
Mitro's user avatar
  • 1,101