|
|
|
@ -19,8 +19,8 @@ import javax.annotation.Resource;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
//@EnableScheduling
|
|
|
|
@EnableScheduling
|
|
|
|
//@EnableAsync
|
|
|
|
@EnableAsync
|
|
|
|
@SpringBootApplication
|
|
|
|
@SpringBootApplication
|
|
|
|
public class AdminClientTemperatureApplication implements CommandLineRunner, ApplicationContextAware {
|
|
|
|
public class AdminClientTemperatureApplication implements CommandLineRunner, ApplicationContextAware {
|
|
|
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -80,7 +80,7 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
|
|
|
|
log.info("------------------------");
|
|
|
|
log.info("------------------------");
|
|
|
|
log.info("temperatureEspService is not empty");
|
|
|
|
log.info("temperatureEspService is not empty");
|
|
|
|
MqttDianDengTechClient client = new MqttDianDengTechClient();
|
|
|
|
MqttDianDengTechClient client = new MqttDianDengTechClient();
|
|
|
|
//client.start(temperatureEspService);
|
|
|
|
client.start(temperatureEspService);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
log.info("temperatureEspService is empty");
|
|
|
|
log.info("temperatureEspService is empty");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|