BleScanResultData
data class BleScanResultData(val rssi: Int, val timestampNanos: Long, val scanRecord: BleScanRecord?, val advertisingSid: Int? = null, val primaryPhy: BleGattPrimaryPhy? = null, val secondaryPhy: BleGattPhy? = null, val txPower: Int? = null, val periodicAdvertisingInterval: Int? = null, val isLegacy: Boolean? = null, val isConnectable: Boolean? = null, val dataStatus: BleScanDataStatus? = null) : Parcelable
ScanResult for Bluetooth LE scan.
See also
ScanResult
(https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanResult)
Constructors
Link copied to clipboard
constructor(rssi: Int, timestampNanos: Long, scanRecord: BleScanRecord?, advertisingSid: Int? = null, primaryPhy: BleGattPrimaryPhy? = null, secondaryPhy: BleGattPhy? = null, txPower: Int? = null, periodicAdvertisingInterval: Int? = null, isLegacy: Boolean? = null, isConnectable: Boolean? = null, dataStatus: BleScanDataStatus? = null)
Properties
Link copied to clipboard
Returns the advertising set id.
Link copied to clipboard
Returns the data status (BleScanDataStatus) .
Link copied to clipboard
Returns true if this object represents connectable scan result.
Link copied to clipboard
Returns true if this object represents legacy scan result.
Link copied to clipboard
Returns the periodic advertising interval in units of 1.
Link copied to clipboard
Returns the primary Physical Layer (BleGattPrimaryPhy) on which this advertisment was received.
Link copied to clipboard
Returns the scan record (BleScanRecord), which is a combination of advertisement and scan response.
Link copied to clipboard
Returns the secondary Physical Layer (BleGattPhy) on which this advertisment was received.
Link copied to clipboard
Returns timestamp since boot when the scan record was observed.
Link copied to clipboard
Returns the transmit power in dBm.