deliverInstallOOBAndWaitForMode

suspend fun deliverInstallOOBAndWaitForMode(deviceId: UInt, dfuRequired: Boolean, timeoutMs: Long): InstallOOBResult

Waits for the device to enter install mode (or DFU mode if dfuRequired). When dfuRequired is true and device enters DFU mode, DFU is initiated.

Return

Success(device), or Timeout

Parameters

deviceId

Device to wait for

dfuRequired

If true, wait for inDFUMode; if false, wait for inInstallMode

timeoutMs

Timeout for mode entry