Questions tagged [mqtt]

For questions regarding the MQTT messaging protocol.

Filter by
Sorted by
Tagged with
0
votes
0answers
47 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 ...
1
vote
1answer
92 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 ...
0
votes
0answers
28 views

Docker-Compose multiple MAC addresses in containers

I am trying to find a way to run 2 services that uses MAC addresses as unique networkIDs on my SmartThings hub (cast-web-api and MQTT-Bridge) Right now, I built a docker-compose.yml file that does ...
0
votes
0answers
25 views

MQTT and Rapsberry PI

When I connect to a newly installed Mosquitto client from my Windows machine it works fine See the python command below : >>> import paho.mqtt.client as mqtt #import the client1 >>&...
1
vote
2answers
297 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
44 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
0answers
23 views

Using Device on /dev/ttyAMA0 instead of Wifi/Ethernet

How can I redirect all the trafic through /dev/ttyAMA0? I have my RPi connected to a LoRa-Mote over serial. Now I want to be able to send all my internet trafic over the antenna of the mote. Reason: ...
0
votes
1answer
510 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
57 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
62 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
86 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
231 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
315 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
121 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/...
0
votes
3answers
329 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
49 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
232 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
569 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 ...
2
votes
2answers
9k 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
276 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
403 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
609 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
2k 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
181 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:/...
2
votes
1answer
16k 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
607 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)....