Skip to content

Commit

Permalink
SMHE-2164: Add Watchdog timer object to simulator
Browse files Browse the repository at this point in the history
Signed-off-by: stefanermens <[email protected]>
  • Loading branch information
stefanermens committed Feb 13, 2025
1 parent a76fda4 commit f4418ba
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.opensmartgridplatform.dlms.interfaceclass.attribute.ProfileGenericAttribute;
import org.opensmartgridplatform.simulator.protocol.dlms.cosem.CaptureObject;
import org.opensmartgridplatform.simulator.protocol.dlms.cosem.DefinableLoadProfile;
import org.opensmartgridplatform.simulator.protocol.dlms.cosem.LongUnsignedData;
import org.opensmartgridplatform.simulator.protocol.dlms.util.DynamicValues;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -77,4 +78,10 @@ public DefinableLoadProfile definableLoadProfile(

return new DefinableLoadProfile(dynamicValues, cal, null, DEFAULT_CAPTURE_OBJECTS);
}

@Bean
public LongUnsignedData watchdogTimer() {
final String obisCode = "0.1.94.31.2.255";
return new LongUnsignedData(obisCode, 72); // Default timer is 72 hours
}
}

0 comments on commit f4418ba

Please sign in to comment.