use of org.opensmartgridplatform.simulator.protocol.dlms.cosem.ConfigurationObject in project open-smart-grid-platform by OSGP.
the class Smr5Profile method configurationObject.
@Bean
public ConfigurationObject configurationObject() {
final Byte[] bytes = new Byte[this.configurationObjectFlags.size()];
this.configurationObjectFlags.toArray(bytes);
this.dynamicValues().setDefaultAttributeValue(InterfaceClass.DATA.id(), new ObisCode(0, 1, 94, 31, 3, 255), ConfigurationObject.ATTRIBUTE_ID_VALUE, DataObject.newBitStringData(new BitString(ArrayUtils.toPrimitive(bytes), 16)));
return new ConfigurationObject();
}
use of org.opensmartgridplatform.simulator.protocol.dlms.cosem.ConfigurationObject in project open-smart-grid-platform by OSGP.
the class DefaultDeviceProfile method configurationObject.
@Bean
public ConfigurationObject configurationObject() {
final Byte[] bytes = new Byte[this.configurationObjectFlags.size()];
this.configurationObjectFlags.toArray(bytes);
this.dynamicValues().setDefaultAttributeValue(InterfaceClass.DATA.id(), new ObisCode(0, 1, 94, 31, 3, 255), ConfigurationObject.ATTRIBUTE_ID_VALUE, DataObject.newStructureData(DataObject.newEnumerateData(this.gprsOperationMode), DataObject.newBitStringData(new BitString(ArrayUtils.toPrimitive(bytes), 16))));
return new ConfigurationObject();
}
Aggregations