startUpdate
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?(source)
Start the firmware update process.
Return
The downloaded/extracted firmware file path, or null if it was a local file or update finished
Parameters
release
The firmware release to install
hardware
The target device hardware
target
The target identifier (e.g., Bluetooth address, IP address, or empty for USB)
updateState
Callback to report back state changes
firmwareUri
Optional URI for a local firmware file (bypasses download)