Files
iotDashboard/mqtt.py
ferdzo f88200f8cc t
2024-08-29 20:37:49 +02:00

5 lines
167 B
Python

import paho.mqtt.subscribe as subscribe
msg = subscribe.simple("esptest-01/sensor/tempreature/state", hostname="localhost")
print("%s %s" % (msg.topic, msg.payload))