Package-level declarations

Types

Link copied to clipboard
sealed class DfuException : Exception

Errors specific to the Nordic Secure DFU protocol.

Link copied to clipboard

Common upload-time surface implemented by both SecureDfuTransport (Nordic Secure DFU, service FE59) and LegacyDfuTransport (Nordic Legacy DFU / Adafruit BLEDfu, service 1530).

Link copied to clipboard
data class DfuZipPackage(val initPacket: ByteArray, val firmware: ByteArray)

Contents extracted from a Nordic DFU .zip package.

Link copied to clipboard

Errors specific to the Nordic Legacy DFU protocol. These are a subtype of DfuException so the existing handler error-path code (which catches DfuException) covers both protocols.

Link copied to clipboard
class LegacyDfuTransport(scanner: BleScanner, connectionFactory: BleConnectionFactory, address: String, dispatcher: CoroutineDispatcher) : DfuUploadTransport

Kable-based transport for the Nordic Legacy DFU protocol (Nordic SDK 11/12 / Adafruit BLEDfu).

Link copied to clipboard
class SecureDfuHandler(firmwareRetriever: FirmwareRetriever, firmwareFileHandler: FirmwareFileHandler, radioController: RadioController, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers) : FirmwareUpdateHandler

KMP FirmwareUpdateHandler for nRF52 devices.

Link copied to clipboard
class SecureDfuTransport(scanner: BleScanner, connectionFactory: BleConnectionFactory, address: String, dispatcher: CoroutineDispatcher) : DfuUploadTransport

Kable-based transport for the Nordic Secure DFU (Secure DFU over BLE) protocol.