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
Returns
UnpackUF2Async(Stream)
Unpack the first file from the given UF2 stream
public static Task<MemoryStream> UnpackUF2Async(Stream stream)
Parameters
streamStreamData stream
Returns
- Task<MemoryStream>
Unpacked file
Exceptions
- IOException
Invalid UF2 data