DFUDriverAndroid

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun cancelDfu(dfuDevice: DFUDevice)

Queues up an operation to cancel any ongoing DFU process

Link copied to clipboard
open suspend override fun getActiveB0Slot(device: BluetoothDevice): Int?
Link copied to clipboard
open suspend override fun sendSMPPayload(device: BluetoothDevice, payload: ByteArray): Boolean

Sends an SMP command to group 64 (custom group) for devices in DFU mode

Link copied to clipboard
open suspend override fun sendSMPReboot(device: BluetoothDevice): Boolean

Sends an SMP reboot command to group 1 (OS management group) to exit install mode

Link copied to clipboard
open override fun startDfu(dfuDevice: DFUDevice, parsedManifest: ParsedManifest, onUpgradeStarted: () -> Unit, progress: (Float) -> Unit, completion: (Boolean) -> Unit)