process

open override fun process(btDevice: BluetoothDevice, rssi: Int, scanRecord: ScanRecord): Boolean

Called by the scan engine to propose a scan record for recognition and analysis.

The implementation should proceed in two steps:

  • Recognition step: check if it is up to this plugin to take charge of this kind of record. See APlugin.mismatch.

    • If negative, just return false and the engine will call another plugin candidate.

    • If positive, proceed with the next step.

  • Processing step: do whatever is needed with the frame. See AProcessorPlugin.processData. Return true at the end.

Return

True if the frame was taken in charge.

Parameters

btDevice

The emitter of the frame.

rssi

The Received Signal Strength Indicator.

scanRecord

The received data.