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
0answers
19 views

bash prepend date command to pipe output [duplicate]

I have a MQTT command that outputs me the power in watts of a device. I run this command and it continously outputs me the watts value and I pipe it through jq because it is json formatted. Later I ...
0
votes
1answer
22 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
0answers
29 views

Is it possible to encrypt traffic if I have only CA certificate?

I have simple secure (I guess) Mosquitto sever 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
1answer
26 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 ...
0
votes
0answers
12 views

Manage MQTT server from web interface

I need to create MQTT server on Internet and allow it to serve for devices I have created. For this reason I need to create web page that will allow to create new user logins for device owners. ...
0
votes
0answers
11 views

Secure Mosquitto service

Trying to configure secure Moscuitto service on Linux. mosquitto.conf: log_type all allow_anonymous false password_file /etc/mosquitto/mosquitto_users.txt pid_file /var/run/mosquitto.pid ...
2
votes
1answer
582 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
1answer
38 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
0answers
52 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 ...
0
votes
0answers
15 views

MQTT Hardware-Requirements Drivers

What are the measurable / quantifiable MQTT inputs that determine the amount of hardware (CPUs, clock-speed, RAM, diskspace) that is required for a system? For example, quantity / size of: message ...
1
vote
1answer
350 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 ...
0
votes
0answers
12 views

MQTT Hardware decision making process

Presented with a choice between a Raspberry Pi: Zero W: wifi only 512MB RAM, Single-Core 32bit ARMv6 CPU (BCM2835) CPU 3 B+: ethernet wifi 1024MB RAM, Quad-core 64bit Cortex-A53 (ARMv8) The ...
0
votes
0answers
16 views

MQTT Computing Power

I would like to understand and eventually measure the incremental difference of MQTT (Mosquito) running on Raspbian: Raspberry pi 3 B+ Raspberry pi Zero-W Questions Is there a standard test suite ...
1
vote
1answer
25 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 ...
0
votes
0answers
25 views

How to query the mosquitto MQTT broker on one specific topic for what ever is retained there, then disconnect?

Does anyone know how to query the mosquitto MQTT broker for one specific topic for what ever is retained there, then disconnect? I have had a fairly extensive look through mosquito_sub man file and ...
0
votes
1answer
790 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 ...
0
votes
0answers
101 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
361 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
127 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-...
2
votes
2answers
402 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: ...
3
votes
1answer
395 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
958 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
124 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
5k 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
333 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 ...