OtaProtocolException

Types

Link copied to clipboard
class CommandFailed(val command: OtaCommand, val response: OtaResponse.Error) : OtaProtocolException

The device returned an error response for a specific OTA command.

Link copied to clipboard
class ConnectionFailed(message: String, cause: Throwable? = null) : OtaProtocolException

Transport-level connection to the device failed or was lost.

Link copied to clipboard
class HashRejected(val providedHash: String) : OtaProtocolException

The device rejected the firmware hash (e.g. NVS partition mismatch).

Link copied to clipboard

An OTA operation did not complete within the expected time window.

Link copied to clipboard
class TransferFailed(message: String, cause: Throwable? = null) : OtaProtocolException

Firmware data transfer did not complete successfully.

Link copied to clipboard

Post-transfer firmware verification failed on the device side.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?