Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
25 views

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 ...
1
vote
1answer
33 views

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

I can't seem to configure persistence in MQTT

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-...
1
vote
2answers
116 views

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: ...
2
votes
1answer
103 views

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

Bash Script: To log MQTT feed to txt file

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

How to tunnel mqtt sub data to pure data (pd) in bash

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

Restart mosquitto - Unknown operation mosquitto [closed]

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 ...
1
vote
1answer
188 views

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 ...
1
vote
1answer
1k views

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 ...