discoverDevice
suspend fun ScanningState.Enabled.Scanning.discoverDevice(identifier: Identifier, rssi: RSSI, advertisementData: BaseAdvertisementData, deviceCreator: () -> Device): suspend () -> ScanningState.Enabled.Scanning
Transitions into a Scanning state where a Device is added or updated
Return
method for transitioning into a Scanning state where the Device is discovered
Parameters
identifier
the Identifier of the Device discovered
advertisementData
the BaseAdvertisementData of the Device discovered
deviceCreator
Method for creating a Device if it had not been scanned previously.