Class Firmware
Helper class for the firmware fields
Inherited Members
Namespace: DuetControlServer.Utility
Assembly: DuetControlServer.dll
Syntax
public static class Firmware
Methods
UnpackUF2(Stream)
Unpack the first file from the given UF2 stream
Declaration
public static Task<MemoryStream> UnpackUF2(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Data stream |
Returns
Type | Description |
---|---|
Task<MemoryStream> | Unpacked file |
Exceptions
Type | Condition |
---|---|
IOException | Invalid UF2 data |
UpdateFirmware()
Update the firmware from this instance
Declaration
public static Task UpdateFirmware()
Returns
Type | Description |
---|---|
Task | Asynchronous task |
UpdateFirmwareRemotely()
Update the firmware using a remote DCS instance
Declaration
public static Task UpdateFirmwareRemotely()
Returns
Type | Description |
---|---|
Task | Asynchronous task |