Skip to content

Commit

Permalink
Change type of summation for reporting configuration (#662)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
  • Loading branch information
cdjackson committed Jul 23, 2021
1 parent 37d25a3 commit e37331b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public boolean initializeDevice() {
ZclAttribute attribute = serverClusterMeasurement
.getAttribute(ZclMeteringCluster.ATTR_CURRENTSUMMATIONDELIVERED);
// Configure reporting - no faster than once per second - no slower than 2 hours.
CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1).get();
CommandResult reportingResponse = attribute.setReporting(3, REPORTING_PERIOD_DEFAULT_MAX, 1L).get();
handleReportingResponse(reportingResponse, POLLING_PERIOD_HIGH, REPORTING_PERIOD_DEFAULT_MAX);
} else {
pollingPeriod = POLLING_PERIOD_HIGH;
Expand Down

0 comments on commit e37331b

Please sign in to comment.