Android Question BLE2 - Connect Low and Read Descriptor in Charateristic

Francesco Maresca

Member
Licensed User
I'm using the BLE2 library version 1.35.

I have two problems:
- When I connect, they can go from 30 seconds to 2 minutes
- How can I read the contents of a "Descriptor" that I find in a "Characteristics"?
Reading the forum I understand that I must use the SetNotify function but when I launch I get the error:

(NullPointerException) java.lang.NullPointerException: Attempt to invoke the virtual method 'boolean android.bluetooth.BluetoothGattDescriptor.setValue (byte [])' on a null object reference
 

Francesco Maresca

Member
Licensed User
Hi,
i solved the connection problem by editing the "autoconnect" False to True parameter in connect2.

Can anyone help me with the other problem?
 
Top