DlmsProtocolReadAttribute(DlmsObject, SByte, String, DlmsDataParsed, CancellationToken) Method

Reads value of one attribute of DLMS/COSEM object. DLMS association must be created before this method is called. Association can be created by CreateAssocitation method.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
C#
public void ReadAttribute(
	DlmsObject obj,
	sbyte attributeID,
	string attributeDescription,
	DlmsDataParsed nextDataParsed,
	CancellationToken cancellationToken
)

Parameters

obj  DlmsObject
Object whose attribute should be read. Appropriate property of this object is filled with read attribute value.
attributeID  SByte
Attribute index to read.
attributeDescription  String
Description that can be used to display in log while reading attribute value.
nextDataParsed  DlmsDataParsed
Callback method used to return next value while receiving block data.
cancellationToken  CancellationToken

See Also