diff --git a/src/controller/java/src/chip/devicecontroller/AndroidChipStack.java b/src/controller/java/src/chip/devicecontroller/AndroidChipStack.java index fd2f0390b9801f..f751c9d2cb84ca 100644 --- a/src/controller/java/src/chip/devicecontroller/AndroidChipStack.java +++ b/src/controller/java/src/chip/devicecontroller/AndroidChipStack.java @@ -162,7 +162,7 @@ public void onDescriptorWrite( return; } - if (desc.getValue() == BluetoothGattDescriptor.ENABLE_INDICATION_VALUE) { + if (desc.getValue() == BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE) { handleSubscribeComplete( connId, svcIdBytes, charIdBytes, status == BluetoothGatt.GATT_SUCCESS); } else if (desc.getValue() == BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE) { @@ -302,7 +302,7 @@ public static boolean onSubscribeCharacteristic(int connId, byte[] svcId, byte[] BluetoothGattDescriptor descriptor = subscribeChar.getDescriptor(UUID.fromString(CLIENT_CHARACTERISTIC_CONFIG)); - descriptor.setValue(BluetoothGattDescriptor.ENABLE_INDICATION_VALUE); + descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); if (!bluetoothGatt.writeDescriptor(descriptor)) { Log.e(TAG, "writeDescriptor failed"); return false;