DlmsProtocolWriteAttribute(DlmsObject, SByte, DlmsSelectiveAccessParams, DlmsType, CancellationToken, Boolean) Method
Writes one attribute to selected DLMS object.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
public void WriteAttribute(
DlmsObject obj,
sbyte attributeId,
DlmsSelectiveAccessParams selectiveAccess,
DlmsType value,
CancellationToken cancellationToken,
bool broadcast = false
)
Parameters
- obj DlmsObject
- attributeId SByte
- Attribute ID.
- selectiveAccess DlmsSelectiveAccessParams
- 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.