CosemAttributeValueCollection Class

Represents collection of COSEM attributes with values.

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 CosemAttributeValueCollection
Inheritance
Object    CosemAttributeValueCollection

Constructors

CosemAttributeValueCollection Initializes a instance of class.

Properties

AttributesCount Count of attributes
AttributeValues Collection of the attributes and values.
CurrentIndex Index of currently proccessed attribute.

Methods

GetNextAttributesForSetRequestWithDataBlock Gets array of attributes for creating set-request-with-list-with-first-block so it fits in single APDU. Starts from attribute on CurrentIndex position.
GetNextAttributesForSetRequestWithList Gets array of attributes for creating set-request-with-list so it fits in single APDU. Starts from attribute on CurrentIndex position.
CheckIfDataWillFitIntoOneSetRequest Checks if the request can be send as normal request or collection of normal requests with list according to maxPDUsize and the lenght of the attributes and values
ResetCurrentIndex Sets CurrentIndex to 0.

See Also