|
@@ -23,7 +23,9 @@ public class CheckDeviceStateWork {
|
|
|
|
|
|
|
|
@Scheduled(fixedRate = 1000 * 15)
|
|
@Scheduled(fixedRate = 1000 * 15)
|
|
|
public void checkDeviceState() {
|
|
public void checkDeviceState() {
|
|
|
|
|
+ // 检测设备在线状态
|
|
|
devicePingInfoService.checkDeviceState();
|
|
devicePingInfoService.checkDeviceState();
|
|
|
|
|
+ // 检测网关在线状态
|
|
|
devicePingInfoService.checkGateWayState();
|
|
devicePingInfoService.checkGateWayState();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|