ble-starter-android icon indicating copy to clipboard operation
ble-starter-android copied to clipboard

Connecting to device results in error 133

Open sgserg opened this issue 3 years ago • 2 comments

Changing one line ConnectionManager.kt:225

device.connectGatt(context, false, callback)

to

device.connectGatt(context, false, callback, BluetoothDevice.TRANSPORT_LE)

solves the problem (although requires to target SDK at least 23)

sgserg avatar Jul 04 '21 09:07 sgserg

@sgserg Sorry for the delayed response. Thanks for reporting this issue! We'll keep this issue open for when we move the library to target a minSdkVersion of 23. For now, we're sticking to 21 and so some OEM devices may not work well. Would you mind also posting your device that failed to connect using connectGatt? Device manufacturer, Android version, etc.

cheeyi avatar Aug 16 '21 05:08 cheeyi

@cheeyi Sure, tested on Maize M6s, Android version 7.0, Flyme 6.3.1.0G

sgserg avatar Aug 16 '21 07:08 sgserg

We have a list of possible reasons that could trigger a 133 error in https://punchthrough.com/android-ble-guide/#Connecting-To-A-BLE-Device. Closing due to inability for our team to reproduce this issue reliably.

cheeyi avatar Apr 09 '24 07:04 cheeyi