Skip to content

Commit

Permalink
Fix the type when initialising Summation Received reporting (#734)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored Jan 28, 2022
1 parent fd6c2bd commit 90715c3
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_CURRENTSUMMATIONRECEIVED);
// 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 90715c3

Please sign in to comment.