|
|
@ -30,8 +30,10 @@ public class StatusService { |
|
|
|
try { |
|
|
|
DeviceStatus deviceStatus = deviceStatusService.getDeviceStatus(); |
|
|
|
String workStatus = sysSettingsService.getWorkStatus(); |
|
|
|
Double targetHumidity = sysSettingsService.getTargetHumidity(); |
|
|
|
Map<String, String> ingData = new HashMap<>(); |
|
|
|
ingData.put("workStatus", workStatus); |
|
|
|
ingData.put("targetHumidity", String.valueOf(targetHumidity)); |
|
|
|
webSocketService.pushMsg(WebSocketMessageType.STATUS, deviceStatus); |
|
|
|
webSocketService.pushMsg(WebSocketMessageType.ING, ingData); |
|
|
|
} catch (Exception e) { |
|
|
|