Table of Contents

Class Firmware

Namespace
DuetControlServer.Utility
Assembly
DuetControlServer.dll

Helper class for the firmware fields

public static class Firmware
Inheritance
Firmware
Inherited Members

Methods

GetFirmwareVersionAsync(string, int)

Try to read the firmware version from a given firmware file

public static Task<string?> GetFirmwareVersionAsync(string filename, int bufferSize)

Parameters

filename string

Firmware file

bufferSize int

Buffer size for reading the file

Returns

Task<string>

Firmware version or null if not found

UnpackUF2Async(Stream)

Unpack the first file from the given UF2 stream

public static Task<MemoryStream> UnpackUF2Async(Stream stream)

Parameters

stream Stream

Data stream

Returns

Task<MemoryStream>

Unpacked file

Exceptions

IOException

Invalid UF2 data