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) => {