FirmwareUpdateManager

Routes firmware update requests to the appropriate platform-specific handler based on the active connection type (BLE, WiFi/TCP, or USB) and device architecture.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun recoverDfuDevice(release: FirmwareRelease, hardware: DeviceHardware, address: String, updateState: (FirmwareUpdateState) -> Unit): FirmwareArtifact?

Recover a device stranded in nRF DFU/bootloader mode after an interrupted update, while the app is disconnected.

Link copied to clipboard
abstract suspend fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, address: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri? = null): FirmwareArtifact?

Begin a firmware update for the connected device.

Link copied to clipboard
abstract suspend fun upgradeBootloaderOverBle(release: FirmwareRelease, hardware: DeviceHardware, address: String, bootloader: BootloaderDfuZip, updateState: (FirmwareUpdateState) -> Unit): FirmwareArtifact?

Upgrade an nRF52 node's SoftDevice and bootloader over BLE with bootloader, then reinstall release, which the upgrade erases.