瀏覽代碼

Merge branch 'develop' of gitadmin/tuoheng_air_monitor into release

tags/V1.0.1
wanjing 1 年之前
父節點
當前提交
7be46d0f51
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mqtt/MqttProviderConfig.java

+ 1
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mqtt/MqttProviderConfig.java 查看文件

@@ -74,8 +74,7 @@ public class MqttProviderConfig {
client.setCallback(new MqttConsumerCallBack());
client.connect(options);

String topic = "/v1/298dd766/environment/message";
log.info("拓恒大气监测系统,订阅:topic={}", topic);
String topic = "$share/airmonitor/298dd766/environment/message";
client.subscribe(topic, 0);
} catch (MqttException e) {
e.printStackTrace();

Loading…
取消
儲存