* 2025-2-17-iot配置消息处理, 以及控制iot命令发送 (#40)

* update:优化

* update:增加视频教程

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

* fixed:iot boolean 参数接收bug

---------

Co-authored-by: Jiao Haoyang <108573524+XuSenfeng@users.noreply.github.com>
Co-authored-by: hrz <1710360675@qq.com>
This commit is contained in:
欣南科技
2025-02-24 22:04:48 +08:00
committed by GitHub
co-authored by Jiao Haoyang hrz
parent c3b0347155
commit 94a90c4124
3 changed files with 11 additions and 11 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import uuid
import time
import queue
import asyncio
import traceback
from config.logger import setup_logging
import threading
import websockets
@@ -149,7 +150,8 @@ class ConnectionHandler:
await ws.close()
return
except Exception as e:
self.logger.bind(tag=TAG).error(f"Connection error: {str(e)}")
stack_trace = traceback.format_exc()
self.logger.bind(tag=TAG).error(f"Connection error: {str(e)}-{stack_trace}")
await ws.close()
return