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
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