CosemMethodDescriptor Class

Class that describes the attrribute in GET request. GET request is used to read attribute values using LN referencing.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public class CosemMethodDescriptor
Inheritance
Object    CosemMethodDescriptor

Constructors

CosemMethodDescriptor Creates new instance of class CosemMethodDescriptor.

Properties

ClassId COSEM class ID, to which the attribute belongs. You can use CLASS_ID constant of specified class.
InstanceId Logical name of instance, to wchich the attribute belongs. You can use DlmsTypeOctetString.CreateFromDelimitedString method or some of DlmsTypeOctetString constructors to create tis value. According to DLMS standard it should containg 6 bytes.
MethodId COSEM attribute ID of an attribute whose value is requested. You can use GetAttributeID method of specified class if you know the attribute name.

Methods

Create Creates request part of attribute descriptor. It can be included in get request and sent to a server (meter).
GetSizeInBytes Returns the size in bytes of attribute descriptor in GET request.

See Also