apidocs / com.nimmsta.core.android.device / BLEConnectFactory

BLEConnectFactory

class BLEConnectFactory : NIMMSTADeviceConnectionFactory

Establishes the connection to a NIMMSTADevice and returns an UARTService in order to communicate.

Author
NIMMSTA Team

Copyright
Daniel Gruber

Properties

context

val context: Context

Functions

createConnectionAsync

Established the connection to the device and returns an UARTServiceInterface. Does error handling if something fails.

fun createConnectionAsync(scannedDevice: SearchScanResult, cancellationToken: CancellationToken?): Task<UARTServiceInterface>

Companion Object Properties

TAG

val TAG: String

Companion Object Functions

shared

fun shared(context: Context): BLEConnectFactory