Browse Source

mqttOptimize

wangming 1 tháng trước cách đây
mục cha
commit
b07bbf05eb
1 tập tin đã thay đổi với 0 bổ sung15 xóa
  1. 0 15
      src/components/component/alarModel.vue

+ 0 - 15
src/components/component/alarModel.vue

@@ -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", () => {
                 console.log("MQTT不在连接");