添加舱内温度和湿度
This commit is contained in:
parent
ec5dba7fc5
commit
acf586de85
|
|
@ -234,6 +234,14 @@ public class BufferDeviceImpl implements IBufferDeviceService
|
|||
}
|
||||
});
|
||||
|
||||
// 舱内温度
|
||||
telemetryMap.get(DeviceTelemetry.TEMPERATURE)
|
||||
.ifPresent(telemetryValue -> dto.setCabinTemperature(telemetryValue.getValue()));
|
||||
|
||||
// 舱内湿度
|
||||
telemetryMap.get(DeviceTelemetry.HUMIDITY)
|
||||
.ifPresent(telemetryValue -> dto.setCabinHumidity(telemetryValue.getValue()));
|
||||
|
||||
return dto;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue