gatt

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

Create a GATT-based DFU transport using the DFU Control Point and DFU Packet characteristics on the standard Nordic DFU service.

Parameters

peripheral

a connected peripheral with the DFU service discovered

commandTimeout

how long to wait for command responses

Throws