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.

enter image description here

MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol.

MQTT - Message Queue Telemetry Transport.

It was designed as an extremely lightweight publish/subscribe messaging protocol originally for sensor applications but also very useful in mobile environments due to the low power consumption, simplicity of API, and small bandwidth used. Clients and servers are available in various languages including C, Python, Erlang, C#, Java etc.

25 questions
4
votes
1 answer

mosquitto bruteforce fail2ban failregex

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 attempt to subscribe with incorrect details,…
Nerijus
  • 56
  • 4
3
votes
2 answers

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 world' **Error: The connection was lost.** What…
gatorback
  • 1,216
  • 20
  • 44
2
votes
2 answers

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 but I couldn't find any Focal-specific…
Stonecraft
  • 779
  • 2
  • 13
  • 29
2
votes
1 answer

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 install it worked so far. Does anyone has any…
ChinM
  • 23
  • 1
  • 3
2
votes
2 answers

MQTT as a variable on Bash?

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: Message = mosquitto_sub -d -t "test/test" Thank…
Gundam0079
  • 31
  • 4
1
vote
1 answer

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 (KDE neon User Edition 5.19, based on Ubuntu…
Gal
  • 521
  • 1
  • 4
  • 8
1
vote
1 answer

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 MQTT server was installed and attempts to subscribe…
gatorback
  • 1,216
  • 20
  • 44
1
vote
1 answer

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 does the Raspbian image already have an MQTT…
gatorback
  • 1,216
  • 20
  • 44
1
vote
0 answers

Error compiling mosquitto_auth_plug

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 ?= no BACKEND_HTTP ?= no BACKEND_JWT ?=…
ussrback
  • 155
  • 2
  • 5
1
vote
1 answer

Where is mosquitto source directory located?

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 please advice which directory i have to indicate…
ussrback
  • 155
  • 2
  • 5
1
vote
1 answer

Play and control multiple audio streams

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 music. Someone want to visit me and pressed ring…
user922871
  • 161
  • 2
  • 3
1
vote
1 answer

Pipe demon output to a function

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 bash program SERVER: (it works) function pipeTee(){ …
Mitro
  • 1,091
  • 6
  • 22
  • 37
0
votes
0 answers

RDBMS subscribe to MQTT server Topic and save data

The goal is to store published measurements to an RDBMS. Mosquitto has been tested on a Libre Potato outfitted with Ubuntu. I have used mySQL for measurements in the past, however, now I would like a database to subscribe to a topic and process \…
gatorback
  • 1,216
  • 20
  • 44
0
votes
2 answers

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 as simply and clearly as possible
Marek J.
  • 1
  • 2
0
votes
1 answer

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 - MQTT Post-processor Loaded: loaded…
KDM
  • 103
  • 3
1
2