DlmsProtocolReadAttributes Method

Reads selected attributes of DLMS/COSEM object with selective access option. 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 ReadAttributes(
	DlmsObject obj,
	DlmsAttributeInfo[] attributeInfo,
	DlmsDataParsed nextDataParsed,
	CancellationToken cancellationToken,
	bool ignoreDataResultErrors = false
)

Parameters

obj  DlmsObject
Object whose attributes should be read. Properties of this object are filled with read attribute values.
attributeInfo  DlmsAttributeInfo
Information about attributes to read. It includes attribute names and optionally selectine access parameters.
nextDataParsed  DlmsDataParsed
Callback method used to return next value while receiving block data.
cancellationToken  CancellationToken
ignoreDataResultErrors  Boolean  (Optional)
If true, exception is not thrown when meter does not return success for some attribute but continues reading next attribute.

See Also