matches
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.
The advertising data are given as a byte array for backwards compatibility with pre-Lollipop devices.
Return
true if the device matches the expected device in bootloader mode.
Since
2.1
Parameters
device
the scanned Bluetooth device.
rssi
the received signal strength indicator (RSSI) value for the device.
scanRecord
the raw scan record of the device.
originalAddress
the MAC address of the device when first connected.
incrementedAddress
the incremented address of the device.