Esp32OtaUpdateHandler

class Esp32OtaUpdateHandler(firmwareRetriever: FirmwareRetriever, firmwareFileHandler: FirmwareFileHandler, radioController: RadioController, nodeRepository: NodeRepository, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers) : FirmwareUpdateHandler(source)

KMP handler for ESP32 firmware updates using the Unified OTA protocol. Supports both BLE and WiFi/TCP transports via UnifiedOtaProtocol.

All platform I/O (file reading, content-resolver imports) is delegated to FirmwareFileHandler.

Constructors

Link copied to clipboard
constructor(firmwareRetriever: FirmwareRetriever, firmwareFileHandler: FirmwareFileHandler, radioController: RadioController, nodeRepository: NodeRepository, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers)

Functions

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

Entry point for FirmwareUpdateHandler interface. Routes to BLE (MAC with colons) or WiFi (IP without).