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")
public Sensor updateSimulation(
@PathVariable("id") Long sensorId,
@RequestParam("value") BigDecimal error,
@RequestParam("value") BigDecimal typical,
@RequestParam("error") BigDecimal error,
@RequestParam("typical") BigDecimal typical,
final Principal principal)
throws NotFoundException {
return sensorService.updateSimulationFromSensor(

View File

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