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