Skip to content

Commit

Permalink
MOSZB-140: try/catch on read of develcoAlarmOffDelay/develcoLedControl
Browse files Browse the repository at this point in the history
There was a issue were configure kept failing due to timeouts on reading these.
As show in #4731 the tech manual might not be 100%
 accurate. So putting them in a try/catch should at least let the configuration continue settings up everything else.
  • Loading branch information
sjorge committed Oct 5, 2022
1 parent d8993e1 commit 12efb28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devices/develco.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,10 @@ module.exports = [
const endpoint35 = device.getEndpoint(35);
await reporting.bind(endpoint35, coordinatorEndpoint, ['genPowerCfg']);
await reporting.batteryVoltage(endpoint35, {min: constants.repInterval.HOUR, max: 43200, change: 100});
await endpoint35.read('genBasic', ['develcoLedControl'], manufacturerOptions);
await endpoint35.read('ssIasZone', ['develcoAlarmOffDelay'], manufacturerOptions);
try {
await endpoint35.read('ssIasZone', ['develcoAlarmOffDelay'], manufacturerOptions);
await endpoint35.read('genBasic', ['develcoLedControl'], manufacturerOptions);
} catch (error) {/* some reports of timeouts on reading these */}

const endpoint38 = device.getEndpoint(38);
await reporting.bind(endpoint38, coordinatorEndpoint, ['msTemperatureMeasurement']);
Expand Down

0 comments on commit 12efb28

Please sign in to comment.