Search in sources :

Example 6 with OctetStringData

use of org.opensmartgridplatform.simulator.protocol.dlms.cosem.OctetStringData in project open-smart-grid-platform by OSGP.

the class DefaultDeviceProfile method deviceId8.

@Bean
public OctetStringData deviceId8() {
    final String obisCode = "0.0.96.1.7.255";
    this.dynamicValues().setDefaultAttributeValue(InterfaceClass.DATA.id(), new ObisCode(obisCode), OctetStringData.ATTRIBUTE_ID_VALUE, DataObject.newOctetStringData(new byte[0]));
    return new OctetStringData(obisCode);
}
Also used : OctetStringData(org.opensmartgridplatform.simulator.protocol.dlms.cosem.OctetStringData) BitString(org.openmuc.jdlms.datatypes.BitString) ObisCode(org.openmuc.jdlms.ObisCode) Bean(org.springframework.context.annotation.Bean)

Aggregations

ObisCode (org.openmuc.jdlms.ObisCode)6 BitString (org.openmuc.jdlms.datatypes.BitString)6 OctetStringData (org.opensmartgridplatform.simulator.protocol.dlms.cosem.OctetStringData)6 Bean (org.springframework.context.annotation.Bean)6