This commit is contained in:
ferdzo
2024-08-29 20:37:49 +02:00
parent f6c0a2bee5
commit f88200f8cc

4
mqtt.py Normal file
View File

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