This commit is contained in:
omenem 2020-05-26 12:52:44 +02:00
parent 5f12c0c813
commit 77e7e9bd7b
2 changed files with 4 additions and 4 deletions

View file

@ -66,8 +66,8 @@ public class SensorController {
@PutMapping("/{id}/simulation") @PutMapping("/{id}/simulation")
public Sensor updateSimulation( public Sensor updateSimulation(
@PathVariable("id") Long sensorId, @PathVariable("id") Long sensorId,
@RequestParam("value") BigDecimal error, @RequestParam("error") BigDecimal error,
@RequestParam("value") BigDecimal typical, @RequestParam("typical") BigDecimal typical,
final Principal principal) final Principal principal)
throws NotFoundException { throws NotFoundException {
return sensorService.updateSimulationFromSensor( return sensorService.updateSimulationFromSensor(

View file

@ -83,8 +83,8 @@ public class Thermostat extends Switchable implements BooleanTriggerable {
@Column(nullable = false, precision = 11, scale = 1) @Column(nullable = false, precision = 11, scale = 1)
private BigDecimal err = new BigDecimal(1); private BigDecimal err = new BigDecimal(1);
@Column(nullable = true, precision = 11, scale = 1) @Column(nullable = false, precision = 11, scale = 1)
private BigDecimal typical = new BigDecimal(17.0);; private BigDecimal typical = new BigDecimal(17.0);
/** Creates a thermostat with a temperature sensor and its initial OFF state */ /** Creates a thermostat with a temperature sensor and its initial OFF state */
public Thermostat() { public Thermostat() {