From d185d363561ab3622ff09f83bc5f14d38498f385 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 19 Sep 2023 10:24:44 +0800
Subject: [PATCH] mqtt连接

---
 src/mqtt/config.ts |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mqtt/config.ts b/src/mqtt/config.ts
index 7f3e5bf..ee8516c 100644
--- a/src/mqtt/config.ts
+++ b/src/mqtt/config.ts
@@ -7,10 +7,10 @@
   connectTimeout: 10000, // mqtt 超时时间
   resubscribe: true, // 断开重连后,再次订阅原订阅
   reconnectPeriod: 10000, // 重连间隔时间: 5s
-  keepalive: 1, // 心跳间隔时间:1s
+  keepalive: 5, // 心跳间隔时间:1s
   clientId: 'DroneWeb',
-  username: 'root',
-  password: 'root',
+  // username: 'root',
+  // password: 'root',
   host: '182.106.212.58',
   protocol: 'ws',
   port: 35675,

--
Gitblit v1.9.3