Esp32OtaUpdateHandler

class Esp32OtaUpdateHandler(firmwareRetriever: FirmwareRetriever, radioController: RadioController, nodeRepository: NodeRepository, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, context: Context) : FirmwareUpdateHandler(source)

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

Constructors

Link copied to clipboard
constructor(firmwareRetriever: FirmwareRetriever, radioController: RadioController, nodeRepository: NodeRepository, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, context: Context)

Functions

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?

Entry point for FirmwareUpdateHandler interface. Decides between BLE and WiFi based on target format.