OtaResponse

sealed class OtaResponse(source)

Responses from the ESP32 Unified OTA protocol.

Inheritors

Types

Link copied to clipboard
data object Ack : OtaResponse

Acknowledgment for received data chunk (BLE only)

Link copied to clipboard
object Companion
Link copied to clipboard
data object Erasing : OtaResponse

Device is erasing flash partition (sent before OK after OTA command)

Link copied to clipboard
data class Error(val message: String) : OtaResponse

Error response with message

Link copied to clipboard
data class Ok(val hwVersion: String? = null, val fwVersion: String? = null, val rebootCount: Int? = null, val gitHash: String? = null) : OtaResponse

Successful response with optional data