Daniel-White Active Member Licensed User Longtime User Apr 12, 2017 #1 Hi, chaps. Simple question. I am looking to implement this in BLE Code: 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?
Hi, chaps. Simple question. I am looking to implement this in BLE Code: 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?
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2017 #2 Daniel-White said: Another question, is it a must use manager.WriteData ?? before apply manager.SetNotify? Click to expand... No. Based on the error message the characteristic you specified doesn't support notifications. Upvote 0
Daniel-White said: Another question, is it a must use manager.WriteData ?? before apply manager.SetNotify? Click to expand... No. Based on the error message the characteristic you specified doesn't support notifications.