Questions tagged [python-paho]
4 questions
3
votes
1 answer
Paho C++ MQTT Client unable to connect to Mosquitto on Ubuntu Docker Image (Python Client Works)
I am facing this issue for a couple of days and I am unable to reproduce it outside the Ubuntu Docker container.
Please refer to this simplified diagram of my architecture:
As you can see, I have everything running inside the Docker container.
This…

asergio
- 81
- 7
1
vote
1 answer
How to make TLS connection to RabbitMQ from python application
I use RabbitMQ with Mqtt plugin. My docker-compose is like below:
loopback_users.guest = false
listeners.tcp = none
listeners.ssl.default = 5671
password_hashing_module = rabbit_password_hashing_sha512
# General
ssl_options.cacertfile =…

Ploxer2
- 31
- 4
0
votes
1 answer
Python paho MQTT loop_forever(): how to redirect output to a file while the script is running?
I'm running a script to subscribe to topics of an MQTT broker and fetch the data associated to them. I run the script like this:
$ python3 test_mqtt_client.py
import paho.mqtt.client as paho
import ssl
import random
from config import…

tirenweb
- 30,963
- 73
- 183
- 303
0
votes
1 answer
Python - paho.mqtt.client - WebSocket handshake error, connection not upgraded
I'm trying to connect to an existing MQTT service (over websockets) that is not managed by me, using paho.mqtt.client.
This is my code:
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, rc):
print("Connected with result…

developer82
- 13,237
- 21
- 88
- 153