DiscoveredDevice

data class DiscoveredDevice(val identifier: Identifier, val rssi: RSSI, val advertisementData: BaseAdvertisementData, val deviceCreator: () -> ConnectableDevice)

A class to add or update a ConnectableDevice using discoverDevices

Parameters

identifier

the Identifier of the ConnectableDevice discovered

rssi

the RSSI value of the ConnectableDevice discovered

advertisementData
deviceCreator

Method for creating a ConnectableDevice if it had not been scanned previously.

Constructors

Link copied to clipboard
constructor(identifier: Identifier, rssi: RSSI, advertisementData: BaseAdvertisementData, deviceCreator: () -> ConnectableDevice)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rssi: RSSI