LegacyDfuTimings

class LegacyDfuTimings(val resetWriteTimeout: Duration = 1.seconds, val startResponseTimeout: Duration = 90.seconds, val validateTimeout: Duration = 60.seconds, val disReadTimeout: Duration = 5.seconds)(source)

Constructors

Link copied to clipboard
constructor(resetWriteTimeout: Duration = 1.seconds, startResponseTimeout: Duration = 90.seconds, validateTimeout: Duration = 60.seconds, disReadTimeout: Duration = 5.seconds)

Properties

Link copied to clipboard
Link copied to clipboard

Bound on the acknowledgement of the Legacy RESET (0x06) write. Legacy bootloaders may disconnect before acknowledging, so a missing acknowledgement is reported as unacknowledged and teardown plus re-advertisement take over.

Link copied to clipboard

Wait for the START_DFU response. The single-bank Adafruit bootloader erases the whole application bank before answering, and with the link live the SoftDevice time-slices each page erase, stretching it to 30-50 s. The disconnect tripwire still fails fast on a real drop, so this only bounds a silent but connected wait.

Link copied to clipboard