Table of Contents

Class FirmwareChecker

Namespace
Huddly.Sdk.Upgraders
Assembly
Huddly.Sdk.dll
public class FirmwareChecker : IFirmwareChecker
Inheritance
FirmwareChecker
Implements
Inherited Members

Constructors

FirmwareChecker(ConnectionType, DeviceModel, ILoggerFactory?, Uri?)

public FirmwareChecker(ConnectionType connection, DeviceModel model, ILoggerFactory? loggerFactory = null, Uri? firmwareApiUrl = null)

Parameters

connection ConnectionType
model DeviceModel
loggerFactory ILoggerFactory
firmwareApiUrl Uri

Methods

GetFirmwareList(FirmwareChannel, CancellationToken)

public Task<Result<List<RemoteFirmwareInfo>>> GetFirmwareList(FirmwareChannel channel, CancellationToken ct = default)

Parameters

channel FirmwareChannel
ct CancellationToken

Returns

Task<Result<List<RemoteFirmwareInfo>>>

GetLatestLocalVersion(IEnumerable<string>, CancellationToken)

Returns the path and version of the latest firmware, given a list of local firmware paths. If the firmware file is not found or cannot be read it is ignored and it will not be returned. If all paths are invalid or point to invalid firmware, an error result is returned.

public Task<Result<LocalFirmwareInfo>> GetLatestLocalVersion(IEnumerable<string> filePaths, CancellationToken ct = default)

Parameters

filePaths IEnumerable<string>
ct CancellationToken

Returns

Task<Result<LocalFirmwareInfo>>

GetLatestRemoteVersion(FirmwareChannel, Dictionary<string, string>, CancellationToken)

public Task<Result<RemoteFirmwareInfo>> GetLatestRemoteVersion(FirmwareChannel channel, Dictionary<string, string> metadata, CancellationToken ct = default)

Parameters

channel FirmwareChannel
metadata Dictionary<string, string>
ct CancellationToken

Returns

Task<Result<RemoteFirmwareInfo>>

GetLatestRemoteVersion(FirmwareChannel, CancellationToken)

public Task<Result<RemoteFirmwareInfo>> GetLatestRemoteVersion(FirmwareChannel channel, CancellationToken ct = default)

Parameters

channel FirmwareChannel
ct CancellationToken

Returns

Task<Result<RemoteFirmwareInfo>>

GetVersion(string, CancellationToken)

public Task<Result<FirmwareVersion>> GetVersion(string filePath, CancellationToken ct = default)

Parameters

filePath string
ct CancellationToken

Returns

Task<Result<FirmwareVersion>>