Bug fix. The Raspberry plugin did not have an empty constructor
Former-commit-id: a8eb62cf5552bf395c3faed05b883cff5217786f
This commit is contained in:
parent
1c23a7c360
commit
2169ee4de5
2 changed files with 12 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue