DfuOptions

data class DfuOptions(val prnInterval: Int = 10, val retryCount: Int = 3, val retryDelay: Duration = 2.seconds, val commandTimeout: Duration = 10.seconds, val transport: DfuTransportConfig = DfuTransportConfig.Gatt)

Configuration for a firmware update.

Defaults are tuned for Nordic nRF5 SDK Secure DFU over GATT.

Constructors

Link copied to clipboard
constructor(prnInterval: Int = 10, retryCount: Int = 3, retryDelay: Duration = 2.seconds, commandTimeout: Duration = 10.seconds, transport: DfuTransportConfig = DfuTransportConfig.Gatt)

Properties

Link copied to clipboard

how long to wait for a response to a DFU command

Link copied to clipboard

how many data packets to send before waiting for a receipt confirmation (Packet Receipt Notification). 0 disables PRNs — faster but removes flow control. Default 10.

Link copied to clipboard

maximum attempts per DFU object before giving up

Link copied to clipboard

pause between retry attempts

Link copied to clipboard

BLE transport to use — GATT (default) or L2CAP for higher throughput