startSocket

open fun startSocket(@NonNull context: Context)

START bluetooth socket

do not open bluetooth socket since already connected to a BLE device avoid receiving multiple events from both classic bluetooth and BLE

See also

Parameters

context

Context the application context


open fun startSocket(@NonNull context: Context, startSocketIfCustomAccessoryOnly: Boolean)
open fun startSocket(    @NonNull context: Context,     @Nullable bluetoothDeviceAddress: String,     startSocketIfCustomAccessoryOnly: Boolean)

START bluetooth socket

do not open bluetooth socket since already connected to a BLE device avoid receiving multiple events from both classic bluetooth and BLE

Parameters

context

Context the application context