|
@@ -478,21 +478,6 @@ export default {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- // console.log(this.clientIdProp);
|
|
|
|
- // if (this.clientIdProp !== null) {
|
|
|
|
- // client.subscribe(
|
|
|
|
- // `/dev/${this.clientIdProp}/dsp_data`,
|
|
|
|
- // (err) => {
|
|
|
|
- // if (err) {
|
|
|
|
- // console.error("订阅clientId失败", err);
|
|
|
|
- // } else {
|
|
|
|
- // console.log(
|
|
|
|
- // `成功订阅设备主题: /dev/${this.clientIdProp}/dsp_data`
|
|
|
|
- // );
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // );
|
|
|
|
- // }
|
|
|
|
});
|
|
});
|
|
client.on("disconnect", () => {
|
|
client.on("disconnect", () => {
|
|
console.log("MQTT不在连接");
|
|
console.log("MQTT不在连接");
|