guoshilong
2023-09-11 11433d0f47eae3403e883fc26d72269b930235f2
src/mqtt/config.ts
@@ -1,4 +1,3 @@
import {
  IClientOptions,
} from 'mqtt'
@@ -9,4 +8,10 @@
  resubscribe: true, // 断开重连后,再次订阅原订阅
  reconnectPeriod: 10000, // 重连间隔时间: 5s
  keepalive: 1, // 心跳间隔时间:1s
  clientId: 'DroneWeb',
  // username: 'guest',
  // password: 'guest',
  host: '192.168.1.198',
  protocol: 'ws',
  port: 8083,
}