Explorar el Código

暂时屏蔽订阅气象站相关设备

liuyaowen hace 1 año
padre
commit
414ee39598

+ 4 - 0
src/main/java/com/yunfeiyun/agmp/iots/core/mqtt/network/MqttCore.java

@@ -238,6 +238,10 @@ public class MqttCore {
         if (getClient().isConnected()) {
             // 如果此mqtt已经建立了连接,则正常订阅
             for (String topic : topics) {
+                if(topic.contains("qxz")){
+                    //TODO://暂时屏蔽气象站相关设备
+                    continue;
+                }
                 getClient().subscribe(topic);
                 log.info("[MQTT] {} 连接已建立 追加订阅主题 {}", cfgYf.getDeviceType(), topic);
             }