Browse Source

mqtt抛出异常

zhongwei
tyty 1 year ago
parent
commit
402e860add
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfig.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfig.java

@ -46,7 +46,7 @@ public class MqttConfig {
// private String mqtt_system_topname; // private String mqtt_system_topname;
@PostConstruct @PostConstruct
public void registerMqtt(){ public void registerMqtt(){
try {
com.hnac.hzinfo.subscribe.MqttConfig mqttConfig = new com.hnac.hzinfo.subscribe.MqttConfig(); com.hnac.hzinfo.subscribe.MqttConfig mqttConfig = new com.hnac.hzinfo.subscribe.MqttConfig();
mqttConfig.setUrl(mqtt_fdp_url); mqttConfig.setUrl(mqtt_fdp_url);
mqttConfig.setGroup(mqtt_fdp_group); mqttConfig.setGroup(mqtt_fdp_group);

Loading…
Cancel
Save