|
|
|
@ -58,14 +58,14 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
|
|
|
|
log.info(entry.getKey());//demo1Controller
|
|
|
|
log.info(entry.getKey());//demo1Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (temperatureService != null) {
|
|
|
|
// if (temperatureService != null) {
|
|
|
|
log.info("------------------------");
|
|
|
|
// log.info("------------------------");
|
|
|
|
log.info("TemperatureController is not empty");
|
|
|
|
// log.info("TemperatureController is not empty");
|
|
|
|
MqttRSAClient client = new MqttRSAClient();
|
|
|
|
// MqttRSAClient client = new MqttRSAClient();
|
|
|
|
client.start(temperatureService);
|
|
|
|
// client.start(temperatureService);
|
|
|
|
}else {
|
|
|
|
// }else {
|
|
|
|
log.info("temperatureService is empty");
|
|
|
|
// log.info("temperatureService is empty");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (temperatureEspService != null) {
|
|
|
|
if (temperatureEspService != null) {
|
|
|
|
log.info("------------------------");
|
|
|
|
log.info("------------------------");
|
|
|
|
log.info("temperatureEspService is not empty");
|
|
|
|
log.info("temperatureEspService is not empty");
|
|
|
|
|