DfuDetector

Detects which DFU protocol a connected peripheral supports by inspecting its discovered GATT services.

The peripheral must be connected with services discovered before calling detect. Returns null if no known DFU service is found.

For most use cases, prefer DfuController.create which combines detection and controller construction in a single call.

Functions

Link copied to clipboard
fun detect(peripheral: Peripheral): DfuProtocolType?

Detect which DFU protocol the peripheral supports.