fix: 更新MQTT连接地址和主题名称

将MQTT服务器地址从111.229.30.246:4199更改为65.73.11.246:10087
同时将生产主题从"event"更改为"xiaofangmqtt"
This commit is contained in:
liangbin 2026-01-23 13:30:17 +08:00
parent f1452cd3c0
commit ea06bad003
1 changed files with 2 additions and 2 deletions

View File

@ -1979,12 +1979,12 @@ export default {
methods: {
openMqtt() {
let clientId = "test_" + new Date().getTime();
let client = mqtt.connect("ws://111.229.30.246:4199", {
let client = mqtt.connect("ws://65.73.11.246:10087", {
clientId: clientId,
username: "",
password: "",
});
let produceTopic = "event";
let produceTopic = "xiaofangmqtt";
client.on("connect", () => {
console.log("mqtt 已经连接成功");