NordicDfuHandler

class NordicDfuHandler(firmwareRetriever: FirmwareRetriever, context: Context, radioController: RadioController) : FirmwareUpdateHandler(source)

Handles Over-the-Air (OTA) firmware updates for nRF52-based devices using the Nordic DFU library.

Constructors

Link copied to clipboard
constructor(firmwareRetriever: FirmwareRetriever, context: Context, radioController: RadioController)

Functions

Link copied to clipboard

Observe DFU progress and events.

Link copied to clipboard
abstract suspend fun startUpdate(release: ERROR CLASS: Symbol not found for FirmwareRelease, hardware: ERROR CLASS: Symbol not found for DeviceHardware, target: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: ERROR CLASS: Symbol not found for CommonUri?? = null): String?

Start the firmware update process.

open suspend override fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, target: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri?): String?