discoverDevice

suspend fun ScanningState.Enabled.Scanning.discoverDevice(identifier: Identifier, rssi: RSSI, advertisementData: BaseAdvertisementData, deviceCreator: () -> ConnectableDevice): suspend () -> ScanningState.Enabled.Scanning

Transitions into a Scanning state where a ConnectableDevice is added or updated

Return

method for transitioning into a Scanning state where the ConnectableDevice is discovered

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.