BLE icon indicating copy to clipboard operation
BLE copied to clipboard

gattStatus=133错误

Open chengxinping opened this issue 6 years ago • 7 comments

断开设备再连接设备 很大概率会报这个错误 ,请问怎么解决 ConnectException{gattStatus=133, bluetoothGatt=android.bluetooth.BluetoothGatt@96a77c1} BleException{code=CONNECT_ERR, description='Connect Exception Occurred! '}

chengxinping avatar Sep 04 '18 08:09 chengxinping

我也有这个情况,使用了网上的说的,disconnect后再close的方式也不行

KaJunChan avatar Sep 13 '18 02:09 KaJunChan

断开设备再连接设备 很大概率会报这个错误 ,请问怎么解决 ConnectException{gattStatus=133, bluetoothGatt=android.bluetooth.BluetoothGatt@96a77c1} BleException{code=CONNECT_ERR, description='Connect Exception Occurred! '}

请问你这问题解决了吗

jinjidecj avatar Nov 12 '18 12:11 jinjidecj

同样会报133错误,我在安卓4.4的板子上运行这个demo,会报这样的错误,但是在别的系统上就不会。

jinjidecj avatar Nov 12 '18 12:11 jinjidecj

我也有这个情况,使用了网上的说的,disconnect后再close的方式也不行

请问你这个情况解决了吗

jinjidecj avatar Nov 12 '18 12:11 jinjidecj

我也有这个情况,使用了网上的说的,disconnect后再close的方式也不行

请问你这个情况解决了吗

我回来换库了 用的fastBLE 没这个问题了

chengxinping avatar Nov 12 '18 14:11 chengxinping

除了换库还有什么方法可以解决啊,求告知! #

WhaleDev avatar May 11 '19 02:05 WhaleDev

已解决,根据版本修改连接方式:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { bluetoothGatt = bluetoothLeDevice.getDevice().connectGatt(ViseBle.getInstance().getContext(), false, coreGattCallback, TRANSPORT_LE); } else { bluetoothGatt = bluetoothLeDevice.getDevice().connectGatt(ViseBle.getInstance().getContext(), false, coreGattCallback); }

zhukai78 avatar Sep 08 '20 03:09 zhukai78