chore: 修改默认服务器列表
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user