mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 09:06:26 +00:00
5 lines
167 B
Python
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))
|