Table of Contents

Class FirmwareUpdater

Namespace
DuetControlServer.Utility
Assembly
DuetControlServer.dll

Firmware updater for Duet boards

public class FirmwareUpdater
Inheritance
FirmwareUpdater
Inherited Members

Constructors

FirmwareUpdater(CodeFactory, FilePathResolver, ObjectModel, IHostApplicationLifetime, ILogger<FirmwareUpdater>, IOptions<Settings>)

Firmware updater for Duet boards

public FirmwareUpdater(CodeFactory codeFactory, FilePathResolver filePath, ObjectModel model, IHostApplicationLifetime lifetime, ILogger<FirmwareUpdater> logger, IOptions<Settings> settings)

Parameters

codeFactory CodeFactory

Code factory

filePath FilePathResolver

File path resolver

model ObjectModel

Object model

lifetime IHostApplicationLifetime

Host application lifetime

logger ILogger<FirmwareUpdater>
settings IOptions<Settings>

Settings

Methods

TryRemoteFirmwareUpdateAsync(CancellationToken)

Try to update the firmware using a remote DCS instance

public Task<bool> TryRemoteFirmwareUpdateAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token

Returns

Task<bool>

True if a remote connection could be established, false otherwise

UpdateFirmwareAsync(CancellationToken)

Update the firmware from this instance

public Task UpdateFirmwareAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token

Returns

Task

Asynchronous task