#faisalatl_code

1 messages ¡ Page 1 of 1 (latest)

tidal vigilBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1420471901876392059

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

warm glade
#

Please keep this thread open. Last thread was closed in less than 10 minutes

#

We want to establish a persistent bluetooth connection and not jump to next available card reader, rather, show an error and allow us to power on the primary card reader. Also, when it scans for other card readers, it only shows one card reader when there are several card readers in the close viccinity. If we also had an option to select the correct one, that would be great.

In cases where card reader is showing as paired in Android BT settings, we want the SDK to pair with that one first.

#

Can I add another developer to this thread? How?

lofty vector
#

These are public threads so if you send them the URL they should be able to just join

warm glade
#

Just forwarded

lofty vector
#

And can you send your code snippets for how you currently discover and connect to readers?

warm glade
#

Ok sure. In email or here in this chat?

lofty vector
#

In this chat

warm glade
#

Ok give me a few minutes

#

private fun connectBluetoothReader(reader: Reader) {
val connectionConfig = ConnectionConfiguration.BluetoothConnectionConfiguration(
locationId = userInfo.value?.locationId.default,
autoReconnectOnUnexpectedDisconnect = true,
bluetoothReaderListener = mobileReaderListener
)
Terminal.getInstance().connectReader(
reader = reader,
config = connectionConfig,
connectionCallback = readerCallback
)
}

lofty vector
#

One thing I think would be helpful to double check here is your onUpdateDiscoveredReaders handler. The SDK shouldn't try to connect to any other reader than the one you pass into the connectReader method, so my best guess at the moment is that your app may be calling connectReader more often than expected.

#

It may also help if you add logging to double check if that connect code is being run multiple times

warm glade
#

Ok got it. Let us check this out

#

How long can we keep this thread open ?

lofty vector
#

We typically close them out after 15 mins of inactivity but I can keep it open longer if you're still looking. How about I check in in half an hour if I haven't heard back from you?

warm glade
#

Ok sure

tidal vigilBOT
leaden token
#

Are you still here?