Bug fix. The Raspberry plugin did not have an empty constructor

Former-commit-id: a8eb62cf5552bf395c3faed05b883cff5217786f
This commit is contained in:
Daniel Collin 2016-01-29 14:13:45 +01:00
parent 1c23a7c360
commit 2169ee4de5
2 changed files with 12 additions and 4 deletions

View file

@ -11,8 +11,12 @@ public class RPiPowerConsumptionSensor implements PowerConsumptionSensorData {
@Configurator.Configurable("GPIO-Pin") @Configurator.Configurable("GPIO-Pin")
private int gpioPin = -1; private int gpioPin = -1;
private final double data; private double data;
private final long timestamp; private long timestamp;
public RPiPowerConsumptionSensor(){
//need to be empty for the framework to create an instance
}
public RPiPowerConsumptionSensor(long timestamp, double data) { public RPiPowerConsumptionSensor(long timestamp, double data) {
this.timestamp = timestamp; this.timestamp = timestamp;

View file

@ -9,8 +9,12 @@ public class RPiTemperatureSensor implements TemperatureSensorData {
@Configurator.Configurable("1-Wire Address") @Configurator.Configurable("1-Wire Address")
private String w1Address = null; private String w1Address = null;
private final double data; private double data;
private final long timestamp; private long timestamp;
public RPiTemperatureSensor(){
//need to be empty for the framework to create an instance
}
public RPiTemperatureSensor(long timestamp, double data) { public RPiTemperatureSensor(long timestamp, double data) {
this.timestamp = timestamp; this.timestamp = timestamp;