ScannerConfiguration.ScanListener

public interface ScanListener

Interface to receive scan events.

Methods

onScan

void onScan(long timestamp, Kallisto kallisto, int rssi, byte[] scanRecord)

Called when a new advertising packet is processed.

Only devices that comply with the ScannerFilter are reported.

This interface is optional. The de.sensry.kallisto.service.listeners.events.SystemEventType.SCAN_FOUND_DEVICE and de.sensry.kallisto.service.listeners.events.SystemEventType.SCAN_LOST_DEVICE can be used to get an accurate list of devices.

Parameters
  • timestamp – Timestamp of the event, in milliseconds. Generated with System.currentTimeMillis().

  • kallisto – The Kallisto device that generated this event.

  • rssi – The RSSI value, in dBm. The valid range is [-127, 127].

  • scanRecord – A byte array with the raw advertising data. Use ScannerLeUtils to parse the data.