update:iot兼容性又问题,撤回

This commit is contained in:
hrz 2025-02-24 21:17:49 +08:00
parent 0da599e41c
commit 16949d926d

View file

@ -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)