添加舱内温度和湿度

This commit is contained in:
孙小云 2026-01-21 18:39:16 +08:00
parent ec5dba7fc5
commit acf586de85
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}