完善中间件自动更新逻辑

This commit is contained in:
BBIT-Kai
2025-12-30 17:55:43 +08:00
parent 62e8ecb7d6
commit 3c1128b356
8 changed files with 74 additions and 26 deletions
+2
View File
@@ -11,6 +11,7 @@ ws_manager = ConnectionManager()
iot_ws_router = APIRouter()
# EMQX 通知在线与否
@iot_ws_router.websocket("/device-status")
async def websocket_device_status(
websocket: WebSocket,
@@ -30,6 +31,7 @@ async def websocket_device_status(
print("[WS] client disconnected")
# Vue 牧安云哨
@iot_ws_router.websocket("/sentinel_record")
async def websocket_sentinel_record(
websocket: WebSocket,