Questions tagged [mqtt]

For questions regarding the MQTT messaging protocol.

Filter by
Sorted by
Tagged with
0
votes
2answers
78 views

Redirecting Traffic to local mqtt server

I am really confuse about how to redirect. I have 2 WLANs, one use to connect to the router(wln0) and one the I use as AP(wlan1). My aim is to redirect traffic from one client connected to the AP that ...
0
votes
0answers
16 views

redirecting MQTT traffic via RPi

I have IOT device that communicate to MQTT server (from port local port 1553 to 8883 on the remote server). to understand the encryption method I want to redirect the traffic to my own local MQTT ...
0
votes
1answer
143 views

broken apt update due to change of sources.list

pi@raspberrypi:~ $ sudo apt update Get 1http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] ...
1
vote
1answer
49 views

Cannot connect RabbitMQ server from client side

I followed this link to install RabbitMQ server on my Raspberry Pi 4. I can see that RabbitMQ 3.7.8 and Erlang 21.2.6 are installed. But I cannot connect to the server from a client (Mqtt Dash, ...
1
vote
0answers
42 views

Problem using MQTT: published message will publish but won't receive

I wrote this code for controlling gpio pins everything is ok but i cant turn on or off gpio pins message will publish but it will not turn on or off gpio pins import paho.mqtt.client as mqtt import ...
0
votes
1answer
38 views

How to publish results on the Web from local MQTT non-Internet network?

I'm making a project where I have a local no-Internet MQTT network (scheme below). Devices (except for RPi 3B+) needs to work outside so I can't provide them Internet access. The purpose of RPi 3B+ ...
1
vote
1answer
82 views

Does RaspAP lock the file system?

Quick question to help stop me from losing my mind. Does the standard install of RaspAP lock the file system to stop you from installing other services? Step 1. RaspAP installed and working fine. ...
0
votes
0answers
63 views

Connection timed out error with MQTT connection with Raspberry Pi and ESP8266

When wanting to connect my raspberry pi to my esp8266 wirelessly through MQTT it gives a connection timed out error and I am not sure why. I have surfed throughout the internet and could not find ...
0
votes
0answers
25 views

Data transfer to Cloud in case of unstable WiFi link

I am building a small IoT system using a Raspberry Pi. On one side a sensor on the other side the cloud for data storage. Between the Cloud and the pi there is a WiFi link. This link is not stable, it ...
0
votes
0answers
100 views

Raspberry pi 4 Hostname always changing

I have a raspberry pi 4 with raspbian buster installed. I set the hostname using raspi-config to "myrpi". I can connect to it using ssh and it works fine. But after a few hours or so, the hostname ...
3
votes
2answers
807 views

Reliable temperature/humidity logging with Python and a DHT11

There are more than 100 questions on this site concerning DHT11 or DHT22 sensors and I have used these with Python and c code using various libraries. None that I have tried seem to give reliable ...
1
vote
2answers
1k views

avahi, zeroconf, mdns + mqtt network

I am new to avahi. And I am not sure how to build a dns-like local area network where all devices can communicate over a mqtt gateway. I am probably wrong. But it seems to me I want to have a unique ...
0
votes
0answers
47 views

Using Pi as an intermediary between 2 LANs

I have one raspberry pi which is running Hassio (Home automation stuff). Normally I would just connect the devices I wanted to automate to home LAN but the problem is my wifi SSID & Password might ...
0
votes
1answer
2k views

Understanding why .service is failing to start

I'm new to the Raspberry Pi, but have gotten mosquitto to work & a similar mosquitto service running on one pi, but when I try running it on another Pi I encounter an error. For context, the ...
0
votes
0answers
85 views

Permision denied error using paho mqtt and Adafruit 32x32 led matrix

I am writing to you because I have the following problem: I have generated a code that allows controlling a 32x32 RGB led matrix through mqtt (AWS IoTCore) using a RPi Zero W with an Adafruit RGB ...
0
votes
0answers
101 views

Unzip libwebsockets-1.22-chrome26-firefox18.tar.gz

I am trying to install libwebsockets into my RPi. I used the wget http://git.warmcat.com/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.3-chrome37-firefox30.tar.gz to download the file. but ...
0
votes
0answers
110 views

Connecting Computer without Internet to raspberry with Ethernet and send Information via MQTT

I'm trying to connect a Pc without internet with a Ethernet Cable to my Raspberry and want to send informations from the Computer to the Raspberry via MQTT. I searched trough the internet but ...
0
votes
0answers
408 views

MQTT connection to broker

Hello I would like to configure paho mqtt but I am having trouble to get it to work properly. I am trying to connect my raspberry to external server where broker is up and running. Port and IP are ...
0
votes
1answer
553 views

Mosquitto log directory gets deleted

I have mosquitto MQTT broker installed on my raspberry (raspbian-stretch). Logs are stored in /var/log/mosquitto. The raspberry pi was now running for some days an the /var/log/mosquitto directory was ...
0
votes
1answer
216 views

Unable to SSH after modifying /etc/rc.local

I am attempting to have a program load on boot and have successfully achieved my desired function by modifying the /etc/rc.local file and adding the following line - (sleep 15; python /home/pi/...
1
vote
3answers
481 views

VNC: how to manage a fleet of RPi?

I've to manage 50 Raspberry Pis remotely, e.g. via VNC over the web. The RPis are behind a router, so I can't access them by IP. I'm looking for something like a self-hosted TeamViewer. The desired ...
0
votes
0answers
54 views

Both local network and enterprise wifi connection on pi 3 running stretch

I am currently trying to build a monitor system with rpi, running stretch image, and a esp8266 nodemcu 1.0. I want to connect them using MQTT via a local network on a router. The Rpi is also connected ...
0
votes
1answer
297 views

mqtt on rpi zero w

I have rpi zero w system with below spec. system specifications: micro SD card slot, a mini HDMI port, two micro USB ports (one for power, one for USB), and 512MB of RAM. It has a single-core 700 MHz ...
0
votes
0answers
33 views

How to determine signal strength from an esp8266 module and a Rasberry Pi

I am trying to write a python script which will determine which of two esp8266 modules is closest to my raspberry pi. My setup is as followed: I am using a Raspberry pi 3 with the raspbian operating ...
0
votes
1answer
730 views

Does there exist an mqtt client that works with python 3.5 on raspbian stretch?

I have been using the paho-mqtt client successfully with python 2.7 on raspbian stretch, but I have a need to use python 3.5 on a new project and paho-mqtt does not appear to install or build for that ...
3
votes
2answers
13k views

How to upgrade Mosquitto MQTT to the latest version?

Right now I have 1.3.4 Mosquitto Version installed from the repository on my PI. Current version is 1.4.15. So, how do I go about upgrading my Mosquitto MQTT to the latest version on my PI? I looked ...
0
votes
0answers
400 views

How to collect data from server to LibreOffice Calc

I have Mosquitto and Node-Red installed on my Pi 3. I want to be able to log the data into a spreadsheet of some sort. Is there a way to do this with Calc or a spreadsheet of some sort on the Pi? The ...
0
votes
1answer
481 views

How to fix Python argument error

I have a little python script I got from here. It listens for MQTT messages and plays a .wav file when a topic is published to. However, I get this error when the script is run: TypeError: ...
0
votes
1answer
2k views

Trying to autorun Paho MQTT client script on boot up

I am running a Paho MQTT client on my raspberry pi (Stretch OS). This script recieves MQTT messages from a publisher script and then stores the data in a SQL database. As I added client.loop_forever() ...
2
votes
2answers
717 views

Paho MQTT: Error during autorun

I am trying to run a Python script on startup. I followed this guide from Instructibles on setting up a cron job. It returns the following error in the logs: File "IoTTest.py", line 58, in <...
2
votes
2answers
1k views

Cant solve dependency issues with Raspberry Pi 3 (raspbian stretch) and MQTT/IBM-Watson

I've been trying to fix this problem for 3 straight days now and I gets no love on the issue. I'm trying to install mosquito and IBM Watson On my Raspberry Pi 3 and there's an issue with the raspbian ...
0
votes
3answers
3k views

Raspberry pi 3 connect to wi fi but can't connect to internet

I use "Raspbian jessie" on my raspberry, and I have configure it to connect to my wi-fi, but the strange thing is when I try to send data with Mqtt, I have this error : MqttException (0) - java.net....
4
votes
1answer
1k views

mosquitto running as service does not work but manually does

if I run mosquitto manually mosquitto i can connect to it and everything works perfectly but if I run mosquitto as a service sudo service mosquitto start then it doesen't respond and nothing works ...
2
votes
0answers
188 views

MQTT TLS not working in Raspberry Pi3

Has anybody got MQTT with TLS working in Pi3 ? If so, please help me to fix my problem.I am using MQTT 1.4 version. I did following steps- I generated both client and server cert files as per https:/...
1
vote
1answer
22k views

What is my MQTT Ip Adress?

I installed the Mosquitto MQTT on my Pi and I want to test it on my Windows via Putty. What is my MQTT server IP address and port ? I tried ifconfig but it shows: inet addr : as hex like fe80::...
1
vote
2answers
1k views

Sending JSON data to Amazon MQTT via GSM module

I want to send some JSON data to an MQTT topic on Amazon IOT. I can send using the Raspberr Pi WiFi adapter, but I want to send using any GSM module. Is there any way or advice on how to do this? ...
0
votes
1answer
1k views

Problem with version MQTT

I am not a linux person. I know enough to break things. I have a pi, MQTT is working perfectly on that I set up all though I do not remember the exact steps (probably a lot of unneeded ones included)....