Esp32OtaTimings

class Esp32OtaTimings(val preflightTimeout: Duration = 5.seconds, val transportRetryDelay: Duration = 2.seconds, val bleConnectAttempts: Int = 5, val wifiConnectAttempts: Int = 10, val wifiReadinessDelay: Duration = 8.seconds, val gattReleaseDelay: Duration = 1.seconds)(source)

Timings for an ESP32 OTA run around the transport: entry confirmation, link release and retries.

Constructors

Link copied to clipboard
constructor(preflightTimeout: Duration = 5.seconds, transportRetryDelay: Duration = 2.seconds, bleConnectAttempts: Int = 5, wifiConnectAttempts: Int = 10, wifiReadinessDelay: Duration = 8.seconds, gattReleaseDelay: Duration = 1.seconds)

Properties

Link copied to clipboard
Link copied to clipboard

Wait for the BLE GATT to release after unbinding the mesh link.

Link copied to clipboard

Wait for the firmware to confirm OTA entry before tearing down the mesh link. The confirmation notification comes before the firmware's 1 s scheduled reboot, so this covers the round trip, not the reboot.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Time for the WiFi OTA loader to reboot, rejoin the network and start its TCP server after confirmation.