Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot disconnect socket mobile S700 #21

Open
huynhlqDev opened this issue Nov 13, 2024 · 2 comments
Open

Cannot disconnect socket mobile S700 #21

huynhlqDev opened this issue Nov 13, 2024 · 2 comments

Comments

@huynhlqDev
Copy link

huynhlqDev commented Nov 13, 2024

I am implementing app functionality with connecting multiple peripherals and some case need disconnect socketMobile device.
I tried to use: (1)
captureHelper?.captureApi?.close() { result in
if result == SKTResult.E_NOERROR {
print("captureApi closed")
} else {
print("can not close captureApi: \(result)")
}
}
or (2)
captureHelper?.closeWithCompletionHandler() { result in
if result == SKTResult.E_NOERROR {
print("captureHelper closed")
} else {
print("can not close captureHelper: \(result)")
}
}

but it doesn't work. In addition, running both causes the app to print "captureHelper closed" then to crash (related to BLE).
Can only turn off mobile socket with physical button [off]. but don't know what is the cause

@EricGlaenzer
Copy link

Closing capture does not disconnect the scanner. In most cases it is not appropriate to disconnect the scanner from the host as it could cause a lot of confusion for the end user. The best is to power off the scanner. There is a command to power off the scanner that you could use but again often this causes a not so great user experience. We will look at this BLE crash, although make sure you are using the latest version of CaptureSDK.

@cyrille-socket
Copy link
Contributor

Hi @huynhlqDev, do you have the stack trace of the BLE crash please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants