msg MQTT message

main
zart 5 months ago
parent f7bbca59a3
commit b090a00351

@ -38,7 +38,9 @@ def on_message(client, userdata, msg):
response_received = True response_received = True
# 创建客户端实例 try:
client = mqtt.Client()
except:
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,) client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,)
# 设置回调函数 # 设置回调函数

Loading…
Cancel
Save