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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue