smp

fun smp(peripheral: Peripheral, commandTimeout: Duration = 10.seconds): DfuTransport

Create an SMP-based DFU transport for MCUboot devices.

Parameters

peripheral

a connected peripheral with the SMP service discovered

commandTimeout

how long to wait for command responses

Throws