ScanRecord

public class ScanRecord

Class used as container to scanning data.

Methods

getAddress

public String getAddress()

Get the MAC address associated with the device that generated this record.

Returns

The MAC address.

getAdvertisingData

public byte[] getAdvertisingData()

Get the raw advertising data associated with the device that generated this record.

Returns

A byte array with the raw advertising data.

getConnectible

public boolean getConnectible()

Get if the scan record is connectible.

getDevice

public BluetoothDevice getDevice()

Get the Bluetooth device that generated this record.

Returns

The BluetoothDevice that generated this record.

getName

public String getName()

Get the name associated with the device that generated this record.

Returns

The name advertised by the device.

getProxyAddress

public String getProxyAddress()

Get the MAC address of the device connected to the Mesh.

Returns

The MAC address.

getRssi

public int getRssi()

Get the RSSI associated with the device that generated this record.

Returns

The RSSI value, in dBm.

getTimestamp

public long getTimestamp()

Get timestamp associated with the device that generated this record.

Returns

The timestamp of this record, in milliseconds. Generated with System.currentTimeMillis().

isProxy

public boolean isProxy()

Check if this scan record belongs to a mesh node.