fun createConnectionAsync(: SearchScanResult, : CancellationToken?): Task<UARTServiceInterface>
Established the connection to the device and returns an UARTServiceInterface. Does error handling if something fails.
scannedDevice
- ScanRecord to connect to
cancellationToken
- cancellationToken to handle cancellations
Return
Task of generic type UARTServiceInterface