DlmsProtocolWriteAttribute(DlmsObject, SByte, DlmsType, CancellationToken, Boolean) Method
Writes one attribute to selected DLMS object. It uses no attribute selective parameters to write.
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,
DlmsType value,
CancellationToken cancellationToken,
bool broadcast = false
)
Parameters
- obj DlmsObject
- attributeId SByte
- Attribute ID.
- 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.