Android Question BLE setnotify

Daniel-White

Active Member
Licensed User
Longtime User
Hi, chaps.

Simple question.

I am looking to implement this in BLE

B4X:
manager.SetNotify("0000ffe0-0000-1000-8000-00805f9b34fb","0000ffe1-0000-1000-8000-00805f9b34fb",True)

But I receive in logs this: :(
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattDescriptor.setValue(byte[])' on a null object reference

Another question, is it a must use manager.WriteData ?? before apply manager.SetNotify?
 
Top