-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable to connect device #13
Comments
@CorentinHeroux , is it happening in both Android and iOS? |
Yes |
I think I have the same problem. My device is ZD420. I can find the address from paired list, but receive "Unable to connect device" when calling connectDevice. The error logs in java are below java.io.IOException: read failed, socket might closed or timeout, read ret: -1 |
I found the reason of my problem, it was because connectDevice seemed to not support ZD420 Bluetooth LE. Finally, I solved it by using import com.zebra.sdk.btleComm.BluetoothLeConnection to make connection.
|
@timnode Hey I am trying to connect with the same printer. Can you elaborate on how you went about it? Would really appreciate. |
You may refer to https://github.com/ararog/react-native-zebra-printer/blob/master/android/src/main/java/com/cyclelution/RCTZebraBTPrinter/RCTZebraBTPrinterModule.java |
This code always returns "Unable to connect device" no matter what device is used (Android 5, 8, 10).
The address sent is the correct one (returned by pairedDevices()).
Zebra ZD421 printer
Has anyone experienced this problem or seen how to solve it ? Thanks
The text was updated successfully, but these errors were encountered: