BluetoothConnectionConfiguration

class BluetoothConnectionConfiguration @JvmOverloads constructor(locationId: String, val autoReconnectOnUnexpectedDisconnect: Boolean = true, val bluetoothReaderListener: MobileReaderListener, val testReaderUpdate: TestReaderUpdate? = null) : ConnectionConfiguration

The BluetoothConnectionConfiguration object is used to connect to a bluetooth reader (currently DeviceType.CHIPPER_2X, DeviceType.STRIPE_M2 and DeviceType.WISEPAD_3).

Parameters

locationId

The ID of the Location that you want this reader to be registered to.

autoReconnectOnUnexpectedDisconnect

If set to true, Terminal will try to reconnect to your reader.

bluetoothReaderListener

The listener which receives events related to the status of the reader, as well as opportunities to update the reader's software.

testReaderUpdate

When set, the SDK will perform or announce a reader software update during connection in test mode. Connect will throw TerminalErrorCode.INVALID_REQUIRED_PARAMETER if connecting to a live-mode reader. Defaults to null (no update).

Constructors

Link copied to clipboard
constructor(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = true, bluetoothReaderListener: MobileReaderListener, testReaderUpdate: TestReaderUpdate? = null)

Properties

Link copied to clipboard
Link copied to clipboard
actual val locationId: String?

The ID of the Location that you want this reader to be registered to.

Link copied to clipboard
val locationRegistration: LocationRegistration
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String