From d148072bddc8bfcd4331d83f8eb68846d80b9115 Mon Sep 17 00:00:00 2001 From: zart Date: Fri, 28 Jun 2024 09:57:39 +0800 Subject: [PATCH] msg MQTT message --- edu_coder/extur_edu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edu_coder/extur_edu.py b/edu_coder/extur_edu.py index b602a8a..029fd63 100644 --- a/edu_coder/extur_edu.py +++ b/edu_coder/extur_edu.py @@ -27,7 +27,7 @@ def on_message(client, userdata, msg): # print("收到消息: " + msg.topic + " " + str(msg.payload)) if msg.topic == "response/{}".format(user_id): - print("收到响应: " + str(msg.payload)) + print("收到响应: "+str(msg.topic) + str(msg.payload)) if msg.topic == "image/{}".format(user_id): with open("image.jpg", "wb") as f: