Added default aggregation intervall.
This commit is contained in:
parent
af39f2c94b
commit
940016f44a
4 changed files with 3 additions and 16 deletions
|
|
@ -13,7 +13,9 @@ public interface HalSensorConfig extends HalDeviceConfig {
|
|||
/**
|
||||
* @return the intended data reporting interval in milliseconds.
|
||||
*/
|
||||
long getDataInterval();
|
||||
default long getDataInterval() {
|
||||
return 60 * 60 * 1000; // 1 hour
|
||||
}
|
||||
|
||||
/**
|
||||
* @return which aggregation method that should be used to aggregate the reported data.
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@ public class ZigbeeHumidityConfig extends ZigbeeHalDeviceConfig implements HalSe
|
|||
// Hal Methods
|
||||
// --------------------------
|
||||
|
||||
@Override
|
||||
public long getDataInterval() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AggregationMethod getAggregationMethod() {
|
||||
return AggregationMethod.AVERAGE;
|
||||
|
|
|
|||
|
|
@ -36,11 +36,6 @@ public class ZigbeePressureConfig extends ZigbeeHalDeviceConfig implements HalSe
|
|||
// Hal Methods
|
||||
// --------------------------
|
||||
|
||||
@Override
|
||||
public long getDataInterval() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AggregationMethod getAggregationMethod() {
|
||||
return AggregationMethod.AVERAGE;
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@ public class ZigbeeTemperatureConfig extends ZigbeeHalDeviceConfig implements Ha
|
|||
// Hal Methods
|
||||
// --------------------------
|
||||
|
||||
@Override
|
||||
public long getDataInterval() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AggregationMethod getAggregationMethod() {
|
||||
return AggregationMethod.AVERAGE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue