BLE notification never received on Android 4.4
I am developing an application in android to communicate with Blugiga BLE 112. Here my BLE device is meant to provide data to android as Readings , I can write a characteristic successfully but I am not getting any <strong> indicators on Android. Below I tried to set a notification.
public void setCharectresticNotification(
BluetoothGattCharacteristic characteristic,
BluetoothGattDescriptor descriptor) {
mBluetoothGatt.setCharacteristicNotification(characteristic, true);
descriptor
.setValue(BluetoothGattDescriptor.ENABLE_INDICATION_VALUE);
mBluetoothGatt.writeDescriptor(descriptor);
}
I call this method when I get the characteristic and handle successfully.
Also please specify the flow that I have to follow in order to set the notification after the connection is established.
+3
source to share
No one has answered this question yet
Check out similar questions: