Open shashankRanaNW opened 2 years ago
Hi @shashankRanaNoidaWala where you able to solve this issue? I'm running into the same and I'm trying to know if the stack exchange that you posted helped you solving it or not. Thanks!
No it didn't help, in the end I used Android Bluetooth Standard Library, which is more fragmented and cumbersome but did the job.
Thank you. Was the device you were trying to connect a Bluetooth Low-Energy or Bluetooth Classic? I read in another issue that this library does not support BLE devices.
Bluetooth classic HC-05.
The issue still persists. sad.
Hello. I used the library in my application which is written in Kotlin. I translated the code into kotlin and did some fixes but I am getting
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
again and again. This post from stackEx() deals with this but I guess that deals with a different problem.
I am afixing my mainActivity which is just the java code translated into kotlin. To be precise onError is giving the error which is called onConnect Thanks