PreviewScanResult
constructor(peripheral: Peripheral, isConnectable: Boolean?, advertisingData: AdvertisingData = fromName(peripheral.name), rssi: Int = -50, txPowerLevel: Int? = null, primaryPhy: PrimaryPhy = PrimaryPhy.PHY_LE_1M, secondaryPhy: Phy? = null, timestamp: Long = 0)
Parameters
peripheral
The peripheral associated with the scan result.
isConnectable
Whether the peripheral is connectable. Use null if the API doesn't provide this information.
advertisingData
The advertising data associated with the scan result. By default, this is set to the result of fromName using the peripheral's name.
rssi
The received signal strength (RSSI) in dBm, defaults to -50 dBm.
txPowerLevel
The transmission power level.
primaryPhy
The primary PHY used to transmit the advertisement, defaults to PHY LE 1M.
secondaryPhy
The secondary PHY used to transmit the advertisement, or null (default) if not used.
timestamp
The timestamp since when the scan record was observed.