AndroidBluetoothLibrary icon indicating copy to clipboard operation
AndroidBluetoothLibrary copied to clipboard

Unable to connect device

Open MiRobotic opened this issue 4 years ago • 0 comments

Hi there, I'm using Bluetooth classic library to connect devices such as phone and tablets via Bluetooth but it is not working, every time i try to connect device i get error

 W/System.err: java.io.IOException: read failed, socket might closed or timeout, read ret: -1
 W/System.err:     at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:772)
 W/System.err:     at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:786)
 W/System.err:     at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:404)
 W/System.err:     at com.github.douglasjunior.bluetoothclassiclibrary.BluetoothClassicService$ConnectThread.run(BluetoothClassicService.java:262)

even using sample app provided by you same error is coming, please help on this

MiRobotic avatar Mar 22 '21 05:03 MiRobotic