public class BluetoothScanResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
payload
The payload received from the bluetooth Low Energy device.
|
int |
rssi
The received signal strength in dBm.
|
long |
timestampNanos
The timestamp when the scan record was observed in nanoseconds since boot.
|
| Constructor and Description |
|---|
BluetoothScanResult(java.lang.String payload,
int rssi,
long timestampNanos)
Construct a new Bluetooth Low Energy scan result.
|
public java.lang.String payload
scanRecord.getBytes() ScanRecord E.g., for an iBeacon:
0201041aff4c00021566622e6d652f40ca9e6f6f71666163653e3a5f06c5public int rssi
ScanResult E.g., -92public long timestampNanos
scanResult.getTimestampNanos() ScanResultpublic BluetoothScanResult(java.lang.String payload,
int rssi,
long timestampNanos)
payload - The payload received from the bluetooth Low Energy device. This must be the raw
bluetooth Low Energy advertisement payload, as returned by scanRecord.getBytes()
ScanRecord E.g., for an iBeacon:
0201041aff4c00021566622e6d652f40ca9e6f6f71666163653e3a5f06c5rssi - The received signal strength in dBm. ScanResult E.g.,
-92timestampNanos - The timestamp when the scan record was observed in nanoseconds since
boot. scanResult.getTimestampNanos() ScanResult