UsbConnectionConfiguration

fun UsbConnectionConfiguration(connectLocationId: String)


fun UsbConnectionConfiguration(locationId: String, autoReconnectOnUnexpectedDisconnect: Boolean = false, usbReaderReconnectionListener: ReaderReconnectionListener? = null)

Parameters

autoReconnectOnUnexpectedDisconnect

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

usbReaderReconnectionListener

You will need to set usbReaderReconnectionListener and being notified by ReaderReconnectionListener.onReaderReconnectStarted when reconnection starts. You will need to listen to ReaderReconnectionListener.onReaderReconnectSucceeded for succeeded reconnection, ReaderReconnectionListener.onReaderReconnectFailed for failed reconnection