ScanResult

interface ScanResult<P : Peripheral<*, *>, AD : AdvertisingData>

A Scan Result represents a single advertisement found during the scan.

The advertisingData contain combined data from the Advertisement Packet and Scan Response packet.

Properties

Link copied to clipboard
abstract val advertisingData: AD

The advertising data (combined with scan response data, if applicable).

Link copied to clipboard
abstract val isConnectable: Boolean

Whether the peripheral is connectable.

Link copied to clipboard
abstract val peripheral: P

The peripheral that was found.

Link copied to clipboard
abstract val primaryPhy: PrimaryPhy

The primary PHY used to transmit the advertisement.

Link copied to clipboard
abstract val rssi: @Range(from = -127, to = 126) Int

The received signal strength (RSSI), in dBm.

Link copied to clipboard
abstract val secondaryPhy: Phy?

The secondary PHY used to transmit the advertisement, or null if not used.

Link copied to clipboard
abstract val timestamp: Long

The timestamp since boot when the scan record was observed, in milliseconds.

Link copied to clipboard
abstract val txPowerLevel: @Range(from = -127, to = 126) Int?

The transmission power level, as advertised in Extended Advertising packet. null if not present.