go-ble / ble

Bluetooth Low Energy for Linux / macOS
BSD 3-Clause "New" or "Revised" License
305 stars 109 forks source link

Unhandled Exception: GATT exception, status 133 (GATT_ERROR) #68

Open mbn18 opened 4 years ago

mbn18 commented 4 years ago

Worked with this lib for the last few months using the commit 147700f13610085f7387692cd6663a67c495ab87 From May 21, 2019

The stack is a flutter mobile app that communicate with a raspberry pi 3+

After upgrading to the latest I started to receive disconnections and the following error at the flutter console:

E/flutter ( 2776): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Exception: GenericFailure(code: CharacteristicValueUpdateError.unknown, message: "GATT exception from MAC='XX:XX:XX:XX:XX:XX', status 133 (GATT_ERROR), type BleGattOperation{description='CHARACTERISTIC_READ'}. (Look up status 0x85 here https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.1.0_r1/stack/include/gatt_api.h)")

To pin point the faulty commit I started to roll back this library and found out that the disconnections start after using commit 15dbdb1e9d44205e4e4d29e3df3d18fa2d724050 Jan 17, 2020.

So now I am using commit 5ba052eb5acfdcd809dbfd8ca33c2dfe30342dcf Jan 10, 2020 and it behave well.

Let me know if you need any more information.