|
|
@ -56,12 +56,12 @@ public class MqttConfigHzims { |
|
|
|
mqttConfig.setPassword(mqtt_fdp_password); |
|
|
|
mqttConfig.setPassword(mqtt_fdp_password); |
|
|
|
mqttConfig.setUsername(mqtt_fdp_username); |
|
|
|
mqttConfig.setUsername(mqtt_fdp_username); |
|
|
|
//fdp
|
|
|
|
//fdp
|
|
|
|
AnalysisSubscribe analysisSubscribe = new AnalysisSubscribe(); |
|
|
|
/*AnalysisSubscribe analysisSubscribe = new AnalysisSubscribe(); |
|
|
|
MqttAsyncClient fdpClient = analysisSubscribe.subscribe(mqttConfig, Collections.singletonList("#"), fdpMqttConsumer); |
|
|
|
MqttAsyncClient fdpClient = analysisSubscribe.subscribe(mqttConfig, Collections.singletonList("#"), fdpMqttConsumer); |
|
|
|
log.info(fdpClient.toString()+fdpClient.getClientId()); |
|
|
|
log.info(fdpClient.toString()+fdpClient.getClientId()); |
|
|
|
//drools
|
|
|
|
//drools
|
|
|
|
DroolsSoeSubscribe droolsSoeSubscribe = new DroolsSoeSubscribe(); |
|
|
|
DroolsSoeSubscribe droolsSoeSubscribe = new DroolsSoeSubscribe(); |
|
|
|
MqttAsyncClient droolsClient = droolsSoeSubscribe.subscribe(mqttConfig, Collections.singletonList("#"), droolsMqttConsumer); |
|
|
|
MqttAsyncClient droolsClient = droolsSoeSubscribe(mqttConfig, Collections.singletonList("#"), droolsMqttConsumer); |
|
|
|
log.info(droolsClient.toString()+droolsClient.getClientId()); |
|
|
|
log.info(droolsClient.toString()+droolsClient.getClientId()); |
|
|
|
//Soe
|
|
|
|
//Soe
|
|
|
|
SoeSubscribe soeSubscribe = new SoeSubscribe(); |
|
|
|
SoeSubscribe soeSubscribe = new SoeSubscribe(); |
|
|
@ -74,8 +74,8 @@ public class MqttConfigHzims { |
|
|
|
//视频
|
|
|
|
//视频
|
|
|
|
SoeSubscribe subscribe = new SoeSubscribe(); |
|
|
|
SoeSubscribe subscribe = new SoeSubscribe(); |
|
|
|
MqttAsyncClient videoClient = subscribe.subscribe(mqttConfig, Collections.singletonList("#"), videoMqttConsumer); |
|
|
|
MqttAsyncClient videoClient = subscribe.subscribe(mqttConfig, Collections.singletonList("#"), videoMqttConsumer); |
|
|
|
log.info(videoClient.toString()+videoClient.getClientId()); |
|
|
|
log.info(videoClient.toString()+videoClient.getClientId());*/ |
|
|
|
}catch (MqttException e){ |
|
|
|
}catch (Exception e){ |
|
|
|
log.error(e.toString()) ; |
|
|
|
log.error(e.toString()) ; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|