SecureDfuHandler

class SecureDfuHandler(meshLink: MeshLink, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers, timings: FirmwareUpdateTimings = FirmwareUpdateTimings())(source)

Updates nRF52 devices over BLE from a package the caller has already obtained.

Despite its historical name, this handler now drives both Nordic Secure DFU (service FE59) and Nordic Legacy DFU / Adafruit BLEDfu (service 1530). After triggering the buttonless reboot it sniffs which DFU service the bootloader exposes and dispatches to the matching DfuUploadTransport implementation.

Constructors

Link copied to clipboard
constructor(meshLink: MeshLink, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers, timings: FirmwareUpdateTimings = FirmwareUpdateTimings())