DlmsProtocolReadAttribute(DlmsObject, DlmsAttributeInfo, DlmsDataParsed, CancellationToken, Boolean) Method
Reads value of one attribute 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.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
public void ReadAttribute(
DlmsObject obj,
DlmsAttributeInfo attributeInfo,
DlmsDataParsed nextDataParsed,
CancellationToken cancellationToken,
bool ignoreDataResultError = false
)
Parameters
- obj DlmsObject
- Object whose attribute should be read. Appropriate property of this object is filled with read attribute value.
- attributeInfo DlmsAttributeInfo
- Information about attribute to read. It includes COSEM attribute name and optionally selective access paramters.
- nextDataParsed DlmsDataParsed
- Callback method used to return next value while receiving block data.
- cancellationToken CancellationToken
- ignoreDataResultError Boolean (Optional)
- If true, exception is not thrown when meter does not return success for some
attribute but continues reading next attribute.