From a38d59954413640b45fbc8096b8b6a39c7112f3e Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Sat, 14 Feb 2026 12:05:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87ID=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BAdefault=20-=20?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E4=BA=91=E7=AB=AF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - device_id: edge → default - 修复云端推送空配置的问题 - 云端摄像头配置的device_id都是default,需要匹配 Co-Authored-By: Claude Opus 4.6 --- config/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/settings.py b/config/settings.py index 28fec69..9aab261 100644 --- a/config/settings.py +++ b/config/settings.py @@ -71,7 +71,7 @@ class MQTTConfig: broker_host: str = "localhost" broker_port: int = 1883 client_id: str = "edge_inference_service" - device_id: str = "edge" + device_id: str = "default" username: Optional[str] = None password: Optional[str] = None keepalive: int = 60 @@ -242,7 +242,7 @@ class Settings: broker_host=os.getenv("MQTT_BROKER_HOST", "localhost"), broker_port=int(os.getenv("MQTT_BROKER_PORT", "1883")), client_id=os.getenv("MQTT_CLIENT_ID", "edge_inference_service"), - device_id=os.getenv("EDGE_DEVICE_ID", "edge"), + device_id=os.getenv("EDGE_DEVICE_ID", "default"), username=os.getenv("MQTT_USERNAME"), password=os.getenv("MQTT_PASSWORD"), )