Skip to main content

ApplicationUpdate Class

NuGet: GHIElectronics.TinyCLR.Update
Assembly: GHIElectronics.TinyCLR.Update
Namespace: GHIElectronics.TinyCLR.Update

Applies an over-the-air application update from a stream. Verifies the signature against key, then flashes and reboots into the new app.

public class ApplicationUpdate

Constructors​

ApplicationUpdate(Stream stream, byte[] key)​

public ApplicationUpdate(Stream stream, byte[] key)

Creates an updater that reads the new application image from stream and verifies its signature against key.

Properties​

ActivityPin​

public GpioPin ActivityPin { get; set; }

Optional pin to toggle during long-running update operations (visual progress LED).

Methods​

Verify()​

public string Verify()

Verifies the signature of the streamed image without flashing it.

Returns string — Decoded version string (e.g. "3.0.0.1000") or "Invalid." if verification failed.

FlashAndReset()​

public void FlashAndReset()

Verifies the image, then writes it to the application region and resets the device. Does not return on success.