DfuSessionTimings
class DfuSessionTimings(val gattReleaseDelay: Duration = 1_500.milliseconds, val rebootWait: Duration = 3.seconds, val connectAttempts: Int = 4, val connectRetryDelay: Duration = 2.seconds, val detectScanTimeout: Duration = 8.seconds, val sessionRetryDelay: Duration = 2.seconds, val resetPrimeRebootWait: Duration = 4.seconds, val bootloaderSwapTimeout: Duration = 6.minutes, val bootloaderSwapFirstScanDelay: Duration = 30.seconds, val preStartBudget: Duration = PRE_START_BUDGET, val legacySessionAttempts: Int = LEGACY_SESSION_ATTEMPTS, val limitedSessionAttempts: Int = LIMITED_SESSION_ATTEMPTS, val maxLegacyStaleResets: Int = MAX_LEGACY_STALE_RESETS)(source)
Timings and attempt budgets for a whole nRF52 DFU run across reboots, detection and retries.
Constructors
Link copied to clipboard
constructor(gattReleaseDelay: Duration = 1_500.milliseconds, rebootWait: Duration = 3.seconds, connectAttempts: Int = 4, connectRetryDelay: Duration = 2.seconds, detectScanTimeout: Duration = 8.seconds, sessionRetryDelay: Duration = 2.seconds, resetPrimeRebootWait: Duration = 4.seconds, bootloaderSwapTimeout: Duration = 6.minutes, bootloaderSwapFirstScanDelay: Duration = 30.seconds, preStartBudget: Duration = PRE_START_BUDGET, legacySessionAttempts: Int = LEGACY_SESSION_ATTEMPTS, limitedSessionAttempts: Int = LIMITED_SESSION_ATTEMPTS, maxLegacyStaleResets: Int = MAX_LEGACY_STALE_RESETS)
Properties
Link copied to clipboard
The swap never finishes this fast, and scanning it out only spends the scan-start quota.
Link copied to clipboard
Bound on the bootloader's own SoftDevice and bootloader swap after ACTIVATE.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Per-service scan timeout for bootloader protocol detection; Legacy and Secure scan in turn.
Link copied to clipboard
Wait for the BLE GATT to release after unbinding the mesh link.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Wait after the buttonless trigger for the device to reboot into its bootloader.
Link copied to clipboard
Wait after a reset-prime RESET for the bootloader to reboot and re-advertise a clean OTA session.
Link copied to clipboard
Delay between whole-session retries, letting the bootloader settle and resume advertising.