From c3b034715543c9c6c4c14875b500cc563baecae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A3=E5=8D=97=E7=A7=91=E6=8A=80?= Date: Mon, 24 Feb 2025 21:20:42 +0800 Subject: [PATCH] Iot (#128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 2025-2-17-iot配置消息处理, 以及控制iot命令发送 (#40) * update:优化 * update:增加视频教程 * update:iot兼容性又问题,撤回 --------- Co-authored-by: Jiao Haoyang <108573524+XuSenfeng@users.noreply.github.com> Co-authored-by: hrz <1710360675@qq.com> --- core/handle/textHandle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/handle/textHandle.py b/core/handle/textHandle.py index 133fddf7..8e34aa72 100644 --- a/core/handle/textHandle.py +++ b/core/handle/textHandle.py @@ -39,6 +39,7 @@ async def handleTextMessage(conn, message): await startToChat(conn, msg_json["text"]) elif msg_json["type"] == "iot": if "descriptors" in msg_json: - await handleIotDescriptors(conn, msg_json["descriptors"]) + pass + # await handleIotDescriptors(conn, msg_json["descriptors"]) except json.JSONDecodeError: await conn.websocket.send(message)