ble-starter-android
ble-starter-android copied to clipboard
Connecting to device results in error 133
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 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 Sure, tested on Maize M6s, Android version 7.0, Flyme 6.3.1.0G
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.