DlmsProtocolWriteAttribute(DlmsObject, DlmsAttributeInfo, DlmsType, CancellationToken, Boolean) Method

Writes one attribute to selected DLMS object.

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 WriteAttribute(
	DlmsObject obj,
	DlmsAttributeInfo attributeInfo,
	DlmsType value,
	CancellationToken cancellationToken,
	bool broadcast = false
)

Parameters

obj  DlmsObject
attributeInfo  DlmsAttributeInfo
Information about attributes to write. It includes attribute names and optionally selective access params.
value  DlmsType
Value to write.
cancellationToken  CancellationToken
broadcast  Boolean  (Optional)
Indicates if broadcast transfer will be used, i.e. no response is expected. If block or with-list transfer is needed, exception is thrown.

See Also