Method UpdateFirmwareAsync
UpdateFirmwareAsync(string, DeviceFirmware, IProgress<int>)
Asynchronously updates the firmware of the Harp device on the specified port.
public static Task UpdateFirmwareAsync(string portName, DeviceFirmware firmware, IProgress<int> progress = null)
Parameters
portNamestringThe name of the serial port used to communicate with the Harp device.
firmwareDeviceFirmwareThe binary firmware image to upload to the device.
progressIProgress<int>The optional IProgress<T> object used to report update progress.
Returns
- Task
The task object representing the asynchronous firmware update operation.
UpdateFirmwareAsync(string, DeviceFirmware, bool, IProgress<int>)
Asynchronously updates the firmware of the Harp device on the specified port.
public static Task UpdateFirmwareAsync(string portName, DeviceFirmware firmware, bool forceUpdate, IProgress<int> progress = null)
Parameters
portNamestringThe name of the serial port used to communicate with the Harp device.
firmwareDeviceFirmwareThe binary firmware image to upload to the device.
forceUpdatebooltrue to indicate that the firmware should be uploaded even if the device reports unsupported hardware, or is in bootloader mode; false to throw an exception if the firmware is not supported, or the device is in an invalid state.
progressIProgress<int>The optional IProgress<T> object used to report update progress.
Returns
- Task
The task object representing the asynchronous firmware update operation.