DfuDeviceSelector

The device selector can be used to filter scan results when scanning for the device advertising in bootloader mode.

By default, the scanner will look for a device advertising an incremented address (the original address + 1). By returning a custom selector from getDeviceSelector the app can override this behavior.

Since

2.1

See also

Functions

Link copied to clipboard
Returns a list of scan filters that should be used to filter scan results when scanning for the device advertising in bootloader mode.
Link copied to clipboard
abstract fun matches(@NonNull device: BluetoothDevice, rssi: Int, @NonNull scanRecord: Array<Byte>, @NonNull originalAddress: String, @NonNull incrementedAddress: String): Boolean
This method should return true if the given device matches the expected device in bootloader mode.