We are facing an issue with BLE Gatt onCharacteristicChanged method. This method is not called.
We have enabled notification using below code:
mBluetoothGatt!!.setCharacteristicNotification("NOTIFY_SERVICE_CHARACTERISTIC", true)
val descriptor = NOTIFY_SERVICE_CHARACTERISTIC.getDescriptor(convertFromInteger(0x2902))
descriptor.value = BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE
descriptor.value = BluetoothGattDescriptor.ENABLE_INDICATION_VALUE
var status = mBluetoothGatt!!.writeDescriptor(descriptor)
After this, We are sending code to BLE from onDescriptorWrite Method.
{WRITE_SERVICE_CHARACTERISTIC}.setValue({BYTE_ARRAY})
val status = mBluetoothGatt!!.writeCharacteristic(RxChar)
After sending code to BLE. it will response in onCharacteristicWrite Method. but we are not getting any response in onCharacteristicChanged Method via Notify Service.
Same commands are working in other BLE Scanner Application but my application facing an issue.
Please help us to solve the issue.
Thanks