DlmsProtocolTransferImage Method
Executes the steps described in BB Figure 12 – Image transfer process flow chart.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
public void TransferImage(
DlmsImageTransfer imgTransfer,
Stream firmwareFileStream,
string imageIdentifier,
bool forceRestartUpload,
bool verifyImage,
bool activateImage,
CancellationToken cancellationToken,
DlmsProtocolITransferImageProgess updateProgress = null,
Action methodToDoWhileWaitingOnVerification = null
)
Parameters
- imgTransfer DlmsImageTransfer
- firmwareFileStream Stream
- imageIdentifier String
- forceRestartUpload Boolean
-
True for uploading fw image from the beginning even if upload has been interrupted before.
False to ask meter from which block number to start uploading.
- verifyImage Boolean
- activateImage Boolean
- cancellationToken CancellationToken
- updateProgress DlmsProtocolITransferImageProgess (Optional)
- Interface used to optionaly update firmware upgrade progress.
- methodToDoWhileWaitingOnVerification Action (Optional)
- Optional method to do while waiting on transfer verification.