From 72ee175bffcb381cf610ca971f65672c9fa14bcf Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sat, 18 Jul 2026 22:02:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/mqtt-manager.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/app/src/main/mqtt-manager.js b/app/src/main/mqtt-manager.js index a296c3c..9220573 100644 --- a/app/src/main/mqtt-manager.js +++ b/app/src/main/mqtt-manager.js @@ -85,7 +85,7 @@ class MqttManager { initDefaultServers() { const defaults = [ { - id: 'srv_001', + id: 'example_server', name: 'EMQX 公共测试', host: 'broker.emqx.io', port: 1883, @@ -100,23 +100,6 @@ class MqttManager { { id: 'topic_default_001', topic: 'sensor/+/temperature', qos: 1, subscribed: false }, { id: 'topic_default_002', topic: 'device/status', qos: 2, subscribed: false } ] - }, - { - id: 'srv_002', - name: '本地 Mosquitto', - host: 'localhost', - port: 1883, - protocol: 'mqtt', - clientId: 'frost_local_' + Math.random().toString(36).slice(2, 8), - username: '', - password: '', - keepAlive: 60, - cleanSession: true, - status: 'disconnected', - topics: [ - { id: 'topic_default_003', topic: 'home/+/light', qos: 1, subscribed: false }, - { id: 'topic_default_004', topic: 'home/alarm', qos: 2, subscribed: false } - ] } ] defaults.forEach((s) => {