A question on enabling characteristics using the new android BLE 4.3:
I am not getting any notification from the BLE device though I enable notification on characteristics one by one asynchronously using a queue.
I also write the descriptor with UUID "00002902-0000-1000-8000-00805f9b34fb" with ENABLE_NOTIFICATION_VALUE.
I have followed the recommendation from Google sdk doc and as well suggestions from various forums.
By the way I get status = 128 on "onDescriptorWrite". Any idea as what this status means?
I went thru google code and did not see any info on this. Even the source code does not throw any light as how this status is being set.
Let me know if any of you have experienced this when you enabled notifications for the body media device. Also at times I get status 133 on descriptor write. I use latest Nexus 7 for my tests.
I received this error when performing
writeCharacteristic
with theWriteNoResponse
property. When I specify theWriteWithoutResponse
argument forwriteCharacteristic
, the problem disappears.I had the same problem, and solved it by disabling and reenabling the bluetooth interface.
The Android BLE stack seems to be still immature and suffers from instability problems.
This error could be related to max threshold imposed by Android OS.
https://groups.google.com/forum/#!topic/android-platform/FNHO5KB4sKI
https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.0.2_r1/bta/gatt/bta_gattc_int.h
A very late answer, but this might prove valuable to anyone encountering status 128 (
GATT_NO_RESOURCES
) on agatt.writedescriptor()
call.In my case status 128 showed up when trying to write a descriptor with a value of
ENABLE_NOTIFICATION_VALUE
for a characteristic that required a subscription for an indication viaENABLE_INDICATION_VALUE
instead.So instead of
going for
Fixed the problem. I assume the other way around will produce the same error status 128.