I am using a nrf51822 based tag and Android official SDK to implement my custom app. I perform the following steps:
1. Scan
2. Connect
3. Discover services
4. Write 0X01 to immediate alert characteristic
Here is the code
BluetoothGattService alertService = mBluetoothGatt.getService(BleDefinedUUIDs.Service.IMMEDIATE_ALERT_UUID);
BluetoothGattCharacteristic alertLevel = alertService.getCharacteristic(BleDefinedUUIDs.Characteristic.ALERT_LEVEL_UUID);
alertLevel.setValue(1, BluetoothGattCharacteristic.FORMAT_UINT8, 0);
boolean status=mBluetoothGatt.writeCharacteristic(alertLevel);
I get value of status as true. Now the tag should beep. But that doesn't happen. Also when I perform the same operation via a 3rd party app in play store it does work. Can you kindly help me out with this issue? Thanks in advance